kopia lustrzana https://github.com/espressif/esp-idf
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/367pull/407/head
rodzic
e335f19a4d
commit
f4c4787281
|
@ -108,7 +108,7 @@ void phy_tlk110_init(void)
|
|||
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);
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
#define PARTNER_ASM_DIR BIT(11)
|
||||
#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 AUTO_MDIX_ENABLE BIT(14)
|
||||
#define AUTO_NEGOTIATION_ENABLE BIT(13)
|
||||
|
|
Ładowanie…
Reference in New Issue