Commit Graph

54 Commits

Author SHA1 Message Date
Alexey Lapshin d3c53f4684 fix(iperf): fix incorrect test expectation logic 2025-12-03 13:31:42 +07:00
glmfe f398594982 feat(protocol_examples_common): Use Ethernet Init component
- Refactored protocol_examples_common to use ethernet_init component
2025-11-19 15:58:12 +01:00
Ondrej Kosta 6e160e2e47 fix(examples): fixed examples ethernet_init dependency 2025-10-21 13:06:04 +02:00
Ondrej Kosta d622d4d9ac feat(esp_eth): removed SPI Ethernet and PHY drivers from IDF 2025-09-28 16:19:42 +02:00
Ondrej Kosta 9662963a3d fix(esp_eth): fixed ETH builds by forcing Ethernet init ver 2025-09-25 07:28:12 +02:00
glmfe 0b330482a7 fix(ethernet_init): Update Ethernet Init Calls
Removed references to components/ethernet_init to use new managed component ethernet_init.
2025-09-23 08:48:08 +02:00
Shen Meng Jing 62d4115e08 docs: Fix some typos 2025-04-30 18:35:39 +08:00
Ondrej Kosta 342202204c fix(esp_eth): init Ethernet after repl init in iperf example 2025-02-11 12:16:31 +01:00
Frantisek Hrbata ad15109daa change(examples): explicitly specify component dependencies for examples
Currently, several examples do not explicitly state their component
dependencies, relying instead on the default behavior that includes all
registered components and commonly required ones in the build.
Explicitly adding component dependencies can reduce build time when
set(COMPONENTS main) is used.

Signed-off-by: Frantisek Hrbata <frantisek.hrbata@espressif.com>
2024-11-20 14:11:24 +01:00
Bogdan Kolendovskyy a23d1b45af feat(iperf): use iperf component in iperf example 2024-05-13 14:11:41 +02:00
Chen Yudong c48eb1055b feat: move iperf to component registry 2024-03-22 10:53:24 +08:00
Ivan Grokhotkov 6d87100a70 feat(examples): add local components via idf_component.yml
Specifying all the dependencies (managed and local) in the manifest
makes it easier for users to see every component the example
depends on.
2023-09-19 10:38:24 +02:00
Bogdan Kolendovskyy d7b8b36082 examples: fix format errors, remove -Wno-format
Logging in series of examples has misuse of "%d" instead of type-appropriate format specifiers.
Fix by changing "%d" to PRIxx macros corresponding to type.
Remove -Wno-format compile flag in those examples that are affected.
2023-02-14 15:46:54 +01:00
Ondrej Kosta 742205a1e7 Merge branch 'feature/examples_eth_init' into 'master'
Ethernet examples: new common init

Closes IDF-5521

See merge request espressif/esp-idf!19210
2022-08-27 22:16:36 +08:00
Ondrej Kosta 20e668259e Ethernet examples: added new common init for Ethernet drivers 2022-08-26 15:43:16 +02:00
Ivan Grokhotkov e596c84d49 build system: re-add -Wno-format as private flag for some example components 2022-08-03 16:42:47 +04:00
Ondrej Kosta bb6c6aff36 esp_eth: SPI Ethernet modules initialization simplification 2022-07-14 08:46:22 +02:00
Ondrej Kosta 1a20b10fd3 Examples: common source for GPIO range in Kconfigs defined 2022-05-12 09:33:40 +02:00
Matus Fabo 24268d47a2 change: renamed FATFS convenience mounting functions
change: renamed every instance of these functions
add: deprecation notice with old functions
change: CC0 licence to CC0-1.0 in fatfsgen_example_main.c
2022-04-11 08:44:40 +00:00
Ondrej Kosta c8b08b9a4b iperf: added Tx bandwidth limit option 2022-03-22 07:17:40 +00:00
Sudeep Mohanty a9fda54d39 esp_hw_support/esp_system: Re-evaluate header inclusions and include directories
This commit updates the visibility of various header files and cleans up
some unnecessary inclusions. Also, this commit removes certain header
include paths which were maintained for backward compatibility.
2022-03-07 11:18:08 +05:30
David Cermak 8da2e4088c esp_eth: Update esp32's EMAC API to decouple driver and vendor config 2022-02-14 16:17:29 +00:00
David Cermak 2553fb5845 esp_eth: Make EMAC DMA burst size configurable
Merges https://github.com/espressif/esp-idf/pull/7874
Closes  https://github.com/espressif/esp-idf/issues/7380
2022-02-14 16:17:29 +00:00
Fischerauer Christian 3fb83f2866 esp_eth: rework KSZ80xx implementation and add more KSZ80xx PHYs
* add support for KSZ8001, KSZ8021, KSZ8031, KSZ8051 and KSZ8061
* remove duplicate code
* simplify architecture to make the code base extensible (for future work)
2021-12-02 11:56:08 +01:00
Roland Dobai 766aa57084 Build & config: Remove leftover files from the unsupported "make" build system 2021-11-11 15:32:36 +01:00
Ondrej Kosta 35454b2bf7 Eth_examples: added support of ESP32-S3 chip
Defined SPI modules default GPIO values for ESP32-S3

SPI bus needs to be initialized with SPI_DMA_CH_AUTO option
2021-09-08 13:11:39 +02:00
zhangwenxu 2be77287b3 openthread: add iperf example for ot-network test 2021-09-06 15:32:38 +08:00
Ondrej Kosta ef30384902 esp_eth: add support for multiple Ethernets modules at a time
Ethernet driver events properly bounded with ESP NETIF actions to support multiple Ethernet modules used at a time.

Components using Ethernet updated to conform with new API.

Closes https://github.com/espressif/esp-idf/issues/7318
2021-08-24 17:10:36 +02:00
Ondrej Kosta 4e77430107 examples: Update Ethernet examples to use new PHY LAN87xx init function
Ethernet examples device usage and Kconfig options synchronized
2021-07-28 19:34:05 +08:00
Ondrej Kosta ae2da1e235 enc28j60: fix stability of the ENC28J60 Ethernet driver example
Resolved possible race conditions when accessing registers in different banks.

Added Tx ready semaphore when requesting packet to transmit (ENC is slow => access to it needs to be controlled).

Added setting of CS hold time based on Data sheet.

Added option to set the ENC28J60 to Full Duplex mode.

Addressed several ENC28J60 Erratas.

Restructured ENC28J60 example folder structure so the driver could be easily linked from different projects.

Extended the README to guide users of how to properly use the ENC28J60 chip.

Extended iperf example to include ENC28J60.

Closes https://github.com/espressif/esp-idf/issues/4747
Closes https://github.com/espressif/esp-idf/issues/7117
Closes https://github.com/espressif/esp-idf/issues/7156
2021-07-26 09:57:18 +02:00
Marius Vikhammer 04df1f3a42 CI: enable example builds for C3
Enables building C3 examples in CI.

Fixes related warnings/errors and disables examples that cannot run.
2021-02-09 12:04:02 +08:00
morris 932c509280 ethernet: not using test MAC address for EMAC example 2021-02-01 14:14:54 +08:00
morris 8d0a0537cc eth: hide spi configuration when using internal emac 2020-11-27 21:11:31 +08:00
morris aea901f014 eth: support W5500 in network examples 2020-11-16 13:30:49 +08:00
Angus Gratton 66fb5a29bb Whitespace: Automated whitespace fixes (large commit)
Apply the pre-commit hook whitespace fixes to all files in the repo.

(Line endings, blank lines at end of file, trailing whitespace)
2020-11-11 07:36:35 +00:00
morris 29f8aecfc0 console_repl: change config structure to support different devices 2020-07-02 07:39:46 +00:00
suda-morris 75cadc2e41 console: simplify examples
1. simplify console examples
2. add "quit" command
3. support console command overwrite
4. add API reference
2020-02-07 20:15:06 +08:00
David Cermak 31b2702387 esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK()
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value
Also to make the initialization code more consistent.
2019-12-17 09:07:49 +01:00
morris c3ee156df0 ethernet: move netif glue && add ref counter
1. move netif glue into single file
2. add reference counter for Ethernet driver
2019-11-27 10:36:32 +08:00
houwenxiang f27ae9b0e2 feature: Add uart hal support. 2019-11-26 20:01:50 +08:00
suda-morris 05d71319de ethernet: add gpio number into config structure 2019-11-20 10:36:45 +08:00
David Cermak 3a19bf055d esp_netif and examples: using wifi driver handle, update examples and tests to pass the CI 2019-11-13 12:36:25 +01:00
David Cermak 7f4c8a0b4f ethernet_examples: use esp_netif instead of tcpip-adapter 2019-11-13 12:36:25 +01:00
suda-morris 81e88764d5 console: fix wrong param passed to esp_err_to_name 2019-10-14 19:49:19 +08:00
suda-morris 546ac64a9e ethernet: update spi-ethernet api 2019-09-19 09:41:21 +00:00
Anton Maklakov afbaf74007 tools: Mass fixing of empty prototypes (for -Wstrict-prototypes) 2019-08-01 16:28:56 +07:00
suda-morris cb42c29252 ethernet: support dm9051
1. move resource allocation from xxx_init to xxx_new
2. fix enabling tx checksum insertion by mistake
3. iperf example: enlarge max arguments
4. add examples for spi-ethernet

Closes https://github.com/espressif/esp-idf/issues/3715
Closes https://github.com/espressif/esp-idf/issues/3711
2019-07-04 19:38:13 +08:00
suda-morris 90c4827bd2 add esp_eth component 2019-06-26 10:19:23 +08:00
Renz Christian Bagaporo 6771eead80 examples: use new component registration api 2019-06-21 19:53:29 +08:00
Roland Dobai 0ae53691ba Rename Kconfig options (components/esp32) 2019-05-21 09:09:01 +02:00