Roland Dobai
766aa57084
Build & config: Remove leftover files from the unsupported "make" build system
2021-11-11 15:32:36 +01:00
David Čermák
f788c337b1
Merge branch 'bugfix/esp_eth_test_deinit' into 'master'
...
esp_eth: Update test_emac.c (GitHub PR)
Closes IDFGH-6178 and IDFGH-6177
See merge request espressif/esp-idf!15873
2021-11-11 07:45:42 +00:00
Tian Sen Wen
c6ba84e5cd
esp_eth: optimize dm9051 Tx throughput
2021-11-09 14:04:11 +08:00
lisekt84
474073c0a9
Update test_emac.c
...
Test of uninstall driver always return ESP_OK (IDFGH-6177) #7854
2021-11-08 19:45:11 +01:00
morris
16677b0d3c
global: make periph enable/disable APIs private
...
peripheral enable/disable usually should be managed by driver itself,
so make it as espressif private APIs, not recommended for user to use it
in application code.
However, if user want to re-write the driver or ports to other platform,
this is still possible by including the header in this way:
"esp_private/peripheral_ctrl.h"
2021-11-08 10:37:47 +08:00
Ondrej Kosta
cb8432e0f2
esp_eth: KSZ8851SNL, enable Rx multicast in MAC filter
...
Closes https://github.com/espressif/esp-idf/issues/7750
2021-11-04 16:17:45 +00:00
David Čermák
9466fd1e16
Merge branch 'bugfix/LAN8720_reset_assertion' into 'master'
...
Increased LAN8720 ETH-PHY reset assertion time
Closes IDFGH-6132 and IDFGH-6018
See merge request espressif/esp-idf!15636
2021-11-03 16:29:09 +00:00
Ondrej Kosta
380864861f
Copyright message fix for 'Increased LAN8720 ETH-PHY reset assertion time'
2021-11-02 09:57:03 +01:00
Frank Sautter
5e7df077d6
Increased LAN8720 ETH-PHY reset assertion time (IDFGH-6018)
...
Increase reset assertion time from 100µs (as specified minimum in the datasheet) to 150µs.
Some specimen of the LAN8720 need the reset signal asserted longer than 100µs to initialise properly. Otherwise they are in a zombie state where they are establishing and loosing an Ethernet link once in a seconds interval.
2021-11-01 22:03:30 +01:00
ma-lalonde
0f754551dd
Add support for Eth PHY KSZ8091
2021-11-01 11:11:18 -04:00
Marius Vikhammer
142bb32c50
ci: update cert used for esp_eth test
2021-10-20 11:34:12 +08:00
David Čermák
d1ac84e68e
Merge branch 'bugfix/lwip_move_icmp_tests_from_eth' into 'master'
...
CI/lw-ip: Move ICMP test cases from eth component
Closes IDF-3863
See merge request espressif/esp-idf!15200
2021-10-01 07:06:32 +00:00
David Cermak
8b45ac0fbc
lwip: Add ping test case (moved from eth component)
2021-09-22 15:22:18 +02:00
Ondrej Kosta
76326e8268
esp_eth: add PHY loopback control via esp_eth_ioctl
...
Fixed esp_eth_ioctl command's data argument non-standard handling
2021-09-14 09:13:54 +02:00
morris
54abf1d0b9
Merge branch 'ci/esp_eth_new_runners' into 'master'
...
feature/ci/esp_eth: new app_test and runner
Closes IDF-3561 and IDFGH-1736
See merge request espressif/esp-idf!14392
2021-09-09 04:16:08 +00:00
David Čermák
39b7d3e13f
Merge branch 'bugfix/eth_dm9051_not_responding' into 'master'
...
esp_eth: Fix dm9051 Rx interrupt processing
Closes IDFGH-4598
See merge request espressif/esp-idf!15073
2021-09-08 14:25:27 +00:00
SalimTerryLi
14a6ab4a8e
esp_eth: new test_app: emac layer tests
2021-09-08 20:00:14 +08:00
David Cermak
676cd99c42
esp_eth: Fix dm9051 Rx interrupt processing
...
* Disable Tx interrupts to fix race condition of missing Rx interrupt
* Check if GPIO interrupt is asserted periodically if the ISR event missed
Closes https://github.com/espressif/esp-idf/issues/6414
2021-09-07 16:38:43 +02:00
laokaiyao
04970fe487
iperfUtility: add udp rx bandwidth scan
2021-09-01 19:11:28 +08:00
laokaiyao
8d18a9c614
emac: optimise iperf performane
2021-09-01 19:11:28 +08:00
morris
ab0c5fed25
eth: dont warn nego timeout if link is down
2021-08-27 15:30:46 +08:00
Ondrej Kosta
300618e5be
Merge branch 'feature/dual_eth' into 'master'
...
esp_eth: add support for multiple Ethernets modules at a time
Closes IDFGH-5596
See merge request espressif/esp-idf!14640
2021-08-27 06:11:48 +00: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
a37e4b18c6
phy_lan87xx: extended Vendor Specific Registers definition
...
Extended Vendor Specific Registers definition to include definitions for LAN8740A/LAN8741A/LAN8742A
Closes https://github.com/espressif/esp-idf/pull/7269
2021-08-10 15:54:32 +02:00
Ondrej Kosta
404905d5f1
esp_eth: Add support to LAN87xx family
...
Merges/Related-to https://github.com/espressif/esp-idf/pull/7097
2021-07-28 19:34:05 +08:00
Ondrej Kosta
02a432b8d3
Fix invalid ETH_MAC_DEFAULT_CONFIG macro in C++
2021-07-19 09:56:07 +02:00
morris
8e069dd755
emac: configure data interface early
...
Related to https://github.com/espressif/esp-idf/issues/7227
2021-07-13 15:10:23 +08:00
Ondrej Kosta
a6db3a5e77
esp_eth: Change clock mode setting
...
RMII clock mode is made to be run-time configurable.
Closes https://github.com/espressif/esp-idf/issues/6564
Closes https://github.com/espressif/esp-idf/issues/7107
2021-07-08 14:27:31 +02:00
laokaiyao
fe354f1c50
hal/emac_hal: refactord emac_hal
2021-06-16 09:48:21 +08:00
David Cermak
45846f06cf
esp_eth: Improve GPIO interrupt processing in w5500 driver
...
Increase the interrupt reassert level timing so the chances of missing
two consecutive events are minimal.
Enable only SIR_RECV interrupt event, so the SEND events are not used
for GPIO signal.
2021-05-25 04:52:46 +00:00
David Cermak
0cd021adb1
esp_eth: Recover the w5500 driver from missed io interrupt
...
If the GPIO interrupt is re-asserted too quickly it could be missed. If this happens the driver goes silent and never receives any data. Recover by periodic checks of the IO signal level
2021-05-25 04:52:46 +00:00
morris
0c25793b06
esp_eth: restart negotiation in esp_eth_start
2021-05-18 11:16:32 +08:00
morris
83f2d802ce
esp_eth: fix default PHY reset gpio
...
Closes https://github.com/espressif/esp-idf/issues/7034
2021-05-18 11:16:05 +08:00
Jon Shallow
154ad2e0e1
esp_eth_mac_openeth.c: Fix issue created by generic check macros update
...
Merges https://github.com/espressif/esp-idf/pull/6936
2021-04-26 08:40:07 +00:00
David Cermak
1e674f1d20
esp_eth: Update KSZ8851SNL driver to use global error checkers
...
Also updated KSZ8851SNL per internal code review:
* Removed Link status change interrupt as it's handled with polling
* Added auto negotiation timeout
* Updated typedefs, moved types to appropriate source, updated
components/esp_eth/src/ksz8851.h to use only inherent device types
* Applied IDF code formatting
* Updated header file order to include first the most generic to more
specific
2021-04-22 13:55:51 +00:00
Vladimir Chistyakov
c4f131e6ee
esp_eth: Add a KSZ8851SNL SPI Ethernet driver
...
Implement the PHY and MAC layers in the driver similar to
the W5500 driver.
Update Kconfig, CMakeLists.txt, and component.mk to incorporate
the changes.
Resolves : #6542
Merges https://github.com/espressif/esp-idf/pull/6636
Closes https://github.com/espressif/esp-idf/issues/6542
2021-04-22 13:55:51 +00:00
morris
0733adab5e
esp_eth: using esp_timer to check link status
2021-04-21 13:08:07 +08:00
morris
537617aec7
esp_eth: support user customized PHY io function
...
Closes https://www.github.com/espressif/esp-idf/issues/6745
2021-04-21 13:08:07 +08:00
morris
ef344d89ae
esp_eth: apply generic error check macros
2021-04-13 10:54:33 +08:00
David Čermák
0f36a2dd16
Merge branch 'bugfix/eth_w5500_4byte_corruption' into 'master'
...
esp_eth: Fix w5500 read register operations
Closes IDFGH-4776 and IDFGH-4400
See merge request espressif/esp-idf!13060
2021-04-12 14:26:30 +00:00
David Cermak
7af358ed93
esp_eth: Fix w5500 to break from potentially infinite tx loop
...
The issue typically happens for link-down during Tx. Added two retry levels, one before checking the sanity of the w5500 phy register and another for the Tx done itself (if the device is in the sane state)
Closes https://github.com/espressif/esp-idf/issues/6233
2021-04-12 07:59:40 +00:00
David Cermak
dfe9580967
esp_eth: Fix w5500 to correctly read registers on -Os
...
Reading SPI data may come in 4-byte units and thus result in unwanted
overwrites if smaller size registers read, especially if multiple placed
one after another. Fixed by using direct reads to `trans` structure for
sizes smaller or equal to 4.
Closes https://github.com/espressif/esp-idf/issues/6579
2021-04-12 07:59:40 +00:00
Omar Chebib
cd79f3907d
gpio: Disable USB JTAG when setting pins 18 and 19 as GPIOs on ESP32C3
...
When `DIS_USB_JTAG` eFuse is NOT burned (`False`), it is not possible
to set pins 18 and 19 as GPIOs. This commit solves this by manually
disabling USB JTAG when using pins 18 or 19.
The functions shall use `gpio_hal_iomux_func_sel` instead of
`PIN_FUNC_SELELECT`.
2021-04-08 14:01:18 +08:00
morris
2a34b0496c
esp_eth: refactor ksz8041 driver into ksz80xx
2021-03-30 08:53:15 +00:00
Patrick Wieder
98a4c70af9
Added support for Ethernet PHY KSZ8081
...
Merges https://github.com/espressif/esp-idf/pull/6578
2021-03-30 08:53:15 +00:00
morris
9d7ba4c49a
eth_phy: fix wrong register bit order in ksz8041
2021-03-30 08:53:15 +00:00
morris
006a87557b
esp_eth: added option to disable soft flow control when rx buffer is few
2021-02-01 14:14:54 +08:00
suda-morris
0208810eca
esp_eth: fix typo in lan8720 driver
...
Closes https://github.com/espressif/esp-idf/issues/6469
2021-01-27 23:48:10 +08:00
morris
c010f24d8b
esp_eth: deprecate esp_eth_receive
...
Ethernet driver is interrupt driven only, don't support polling mode.
So deprecate esp_eth_receive API.
2021-01-27 23:48:01 +08:00
Axel Lin
2049aa9f68
esp_eth: Add ioctl command for getting duplex mode
...
Similar to ETH_CMD_G_SPEED, add ETH_CMD_G_DUPLEX_MODE for getting duplex mode.
Merges https://github.com/espressif/esp-idf/pull/6436
2021-01-25 08:40:47 +00:00
morris
753a929525
global: fix sign-compare warnings
2021-01-12 14:05:08 +08:00
morris
c280dc3ac5
eth: added cert for download test
2021-01-07 11:22:23 +08:00
morris
1e905acacf
eth: support W5500 MAC RAW mode
...
W5500 features an Ethernet MAC+PHY, plus a HW SOCKET implementation.
But in IDF, we only use software TCP/IP stack, which means we have
to bypass the HW TCP/IP stack in W5500.
So we enables the MAC RAW mode in W5500.
2020-11-16 13:30:49 +08:00
Angus Gratton
420aef1ffe
Updates for riscv support
...
* Target components pull in xtensa component directly
* Use CPU HAL where applicable
* Remove unnecessary xtensa headers
* Compilation changes necessary to support non-xtensa gcc types (ie int32_t/uint32_t is no
longer signed/unsigned int).
Changes come from internal branch commit a6723fc
2020-11-13 07:49:11 +11: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
Yorick van Pelt
65707cfb41
esp_eth_mac_esp32: optionally setup SMI GPIO's
...
This enables passing smi_mdio_gpio_num = -1 to disable that signal
Merges https://github.com/espressif/esp-idf/pull/5903
2020-09-25 19:59:41 +08:00
Renz Bagaporo
6462f9bfe1
esp32, esp32s2: create esp_pm component
2020-09-25 05:24:10 +00:00
morris
9fa06719fa
global: enable build uinit test for esp32-s3
2020-09-22 15:15:03 +08:00
Ivan Grokhotkov
b6467257b9
Merge branch 'feature/cmock_component' into 'master'
...
cmock as component replacing unity
See merge request espressif/esp-idf!9859
2020-09-10 16:06:20 +08:00
Jakob Hasse
f7f46905ec
esp_eth: moved extern "C" after includes
2020-09-08 17:44:57 +08:00
morris
31aa16bbe6
unit_test: switch icmp test server to taobao
2020-09-06 09:42:44 +08:00
Jakob Hasse
20c068ef3b
cmock: added cmock as component
...
* changing dependencies from unity->cmock
* added component.mk and Makefile.projbuild
* ignore test dir in gen_esp_err_to_name.py
* added some brief introduction of CMock in IDF
2020-09-02 16:38:37 +08:00
morris
76fe489c58
ethernet: support power on timeout
...
Closes https://github.com/espressif/esp-idf/issues/5425
2020-08-10 18:54:25 +08:00
morris
f4131b9b42
ethernet: handle early rx interrupt
2020-08-10 18:54:25 +08:00
morris
4e38aab1b0
ethernet: support flow control for esp32 emac
2020-08-10 18:54:25 +08:00
morris
2917651478
esp_rom: extract common ets apis into esp_rom_sys.h
2020-07-27 15:27:01 +08:00
morris
ab0537c079
esp_rom: extract common MD5 hash apis into esp_rom_md5.h
2020-07-21 17:01:28 +08:00
morris
abcea51976
ethernet: insert min assert time for PHY HW reset
...
Closes https://github.com/espressif/esp-idf/issues/5528
2020-07-09 22:03:17 +08:00
morris
648bcc7a87
ethernet: add ksz8041 in basic ethernet example
2020-07-09 21:49:07 +08:00
Meowthink
62237cf28c
Add Microchip KSZ8041 PHY support.
...
Merges https://github.com/espressif/esp-idf/pull/5452
2020-07-09 21:00:42 +08:00
morris
a4d0033c03
esp_rom: extract common GPIO apis into esp_rom_gpio.h
2020-07-07 11:40:19 +08:00
morris
1184366387
ethernet: support pin emac task to core
2020-05-29 17:51:37 +08:00
morris
d8a9ce14d7
ethernet: fix potential task watch dog timeout
2020-05-13 16:03:00 +08:00
morris
4454b198bb
ethernet: better control start/stop/uninstall/install
2020-05-13 15:58:42 +08:00
morris
6020d6a5d4
ethernet: esp_eth_stop API should stop emac hardware
2020-05-13 15:58:42 +08:00
Renz Bagaporo
3d0967a58a
test: declare requirements and include dirs private
2020-03-23 10:58:50 +08:00
morris
0a7ccb8095
ethernet: fix potential null pointer dereference
...
Closes https://github.com/espressif/esp-idf/issues/4890
2020-03-07 12:12:29 +08:00
morris
ea8d6318af
add SOC_EMAC_SUPPORTED in soc_caps.h
2020-02-24 11:57:58 +08:00
morris
9e59be1aab
ethernet: add enc28j60 example
2020-02-10 12:56:14 +08:00
Henry Gilbert
eda07acc81
Add ENC28J60 Ethernet Driver
...
Merges https://github.com/espressif/esp-idf/pull/4435
2020-02-10 12:56:14 +08:00
morris
e30cd361a8
global: rename esp32s2beta to esp32s2
2020-01-22 12:14:38 +08:00
morris
cc0459eea2
ethernet: always put eth_driver handle in SRAM
...
Closes https://github.com/espressif/esp-idf/issues/4635
2020-01-19 16:25:44 +08:00
morris
5ad0bdd8db
ethernet: work with cache disabled
...
add ETH_MAC_FLAG_WORK_WITH_CACHE_DISABLE flag, make ethenret driver
possible to work when cache disabled
Closes https://github.com/espressif/esp-idf/issues/4406
2020-01-19 16:25:24 +08:00
michael
4220752aed
ut: Move tests back from "esp32" subfolder
...
DISABLED_FOR_TARGETS macros are used
Partly revert "ci: disable unavailable tests for esp32s2beta"
This partly reverts commit 76a3a5fb48
.
Partly revert "ci: disable UTs for esp32s2beta without runners"
This partly reverts commit eb158e9a22
.
Partly revert "fix unit test and examples for s2beta"
This partly reverts commit 9baa7826be
.
Partly revert "efuse: Add support for esp32s2beta"
This partly reverts commit db84ba868c
.
2020-01-06 17:13:53 +08:00
morris
7baf7ce273
ethernet: optimise tx and rx
2019-12-24 11:18:31 +08:00
morris
fce6a9c735
ethernet: test ethernet download
2019-12-24 11:18:30 +08:00
morris
197d5d7378
ethernet: support phy addr auto detect
2019-12-24 11:18:30 +08:00
morris
cf161b1c83
ethernet: add start/stop stress test
2019-12-03 17:58:03 +08:00
morris
ac11545e0a
ethernet: warning when double start/stop
2019-12-03 16:10:20 +08:00
morris
57ef88a91f
ethernet: add pm lock
2019-12-03 16:10:20 +08: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
suda-morris
05d71319de
ethernet: add gpio number into config structure
2019-11-20 10:36:45 +08:00
suda-morris
f3d0429a9e
ethernet: add reference counter for mac and phy
2019-11-20 10:36:45 +08:00
David Cermak
d0afdaaf24
esp_eth: moved starting link timer to eth driver start
2019-11-13 12:36:26 +01:00
David Cermak
7f5cda1b82
tcpip_adapter: updated tcpip_adapter compatablity layer to include all
...
public API and keep 100% backward compatibility
update build of tcpip adapter when ethernet disabled
2019-11-13 12:36:25 +01:00
David Cermak
3f60837de2
esp_eth: make esp_eth_driver_start public API so application could start ethernet when used without esp-netif
2019-11-13 12:36:25 +01:00
David Cermak
eb94d87935
esp_netif: address failures on tcpip-task ipc call, deinit lwip netif and ip address issues
2019-11-13 12:36:25 +01: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
ba13275c6b
esp_netif: update default DHCP IP addresses to be in line with old interface, added loopback implementation, explicit esp-netif init, sanity checks for parameters added
2019-11-13 12:36:25 +01:00
David Cermak
b834c99148
examples: modify other examples and tests to use esp_netif instead of tcpip_adapter
2019-11-13 12:36:25 +01:00