mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
examples/ethernet: Same sense of meaning SW_STRAP
Merges #366 #367 https://github.com/espressif/esp-idf/pull/366 https://github.com/espressif/esp-idf/pull/367
This commit is contained in:
parent
aa2f5e4ae5
commit
de461671aa
@ -108,7 +108,7 @@ void phy_tlk110_init(void)
|
|||||||
while (esp_eth_smi_read(PHY_IDENTIFIER_REG) != OUI_MSB_21TO6_DEF) {
|
while (esp_eth_smi_read(PHY_IDENTIFIER_REG) != OUI_MSB_21TO6_DEF) {
|
||||||
}
|
}
|
||||||
|
|
||||||
esp_eth_smi_write(SOFTWARE_STRAP_CONTROL_REG, DEFAULT_PHY_CONFIG |SW_STRAP_CONFIG_DONE);
|
esp_eth_smi_write(SW_STRAP_CONTROL_REG, DEFAULT_PHY_CONFIG | SW_STRAP_CONFIG_DONE);
|
||||||
|
|
||||||
ets_delay_us(300);
|
ets_delay_us(300);
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#define PARTNER_ASM_DIR BIT(11)
|
#define PARTNER_ASM_DIR BIT(11)
|
||||||
#define PARTNER_PAUSE BIT(10)
|
#define PARTNER_PAUSE BIT(10)
|
||||||
|
|
||||||
#define SOFTWARE_STRAP_CONTROL_REG (0x9)
|
#define SW_STRAP_CONTROL_REG (0x9)
|
||||||
#define SW_STRAP_CONFIG_DONE BIT(15)
|
#define SW_STRAP_CONFIG_DONE BIT(15)
|
||||||
#define AUTO_MDIX_ENABLE BIT(14)
|
#define AUTO_MDIX_ENABLE BIT(14)
|
||||||
#define AUTO_NEGOTIATION_ENABLE BIT(13)
|
#define AUTO_NEGOTIATION_ENABLE BIT(13)
|
||||||
|
Loading…
Reference in New Issue
Block a user