mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/LAN8720_reset_assertion_v4.3' into 'release/v4.3'
Increased LAN8720 ETH-PHY reset assertion time (v4.3) See merge request espressif/esp-idf!15826
This commit is contained in:
commit
3eb854c3ea
@ -280,7 +280,8 @@ static esp_err_t lan8720_reset_hw(esp_eth_phy_t *phy)
|
||||
esp_rom_gpio_pad_select_gpio(lan8720->reset_gpio_num);
|
||||
gpio_set_direction(lan8720->reset_gpio_num, GPIO_MODE_OUTPUT);
|
||||
gpio_set_level(lan8720->reset_gpio_num, 0);
|
||||
esp_rom_delay_us(100); // insert min input assert time
|
||||
/* assert nRST signal on LAN8720 a little longer than the minimum specified in datasheet */
|
||||
esp_rom_delay_us(150);
|
||||
gpio_set_level(lan8720->reset_gpio_num, 1);
|
||||
}
|
||||
return ESP_OK;
|
||||
|
Loading…
x
Reference in New Issue
Block a user