Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e6ba8c7

Browse filesBrowse files
authored
Add KSZ8081 support. (espressif#5061)
This adds support for the KSZ8081 ethernet phy. Only the IDF 4+ specific code is modified, as the phy support was only added recently: espressif/esp-idf@aecfbf96
1 parent 72eb3f3 commit e6ba8c7
Copy full SHA for e6ba8c7

File tree

Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-1
lines changed

‎libraries/WiFi/src/ETH.cpp

Copy file name to clipboardExpand all lines: libraries/WiFi/src/ETH.cpp
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
170170
eth_phy = esp_eth_phy_new_dm9051(&phy_config);
171171
break;
172172
#endif
173+
case ETH_PHY_KSZ8081:
174+
eth_phy = esp_eth_phy_new_ksz8081(&phy_config);
173175
default:
174176
break;
175177
}

‎libraries/WiFi/src/ETH.h

Copy file name to clipboardExpand all lines: libraries/WiFi/src/ETH.h
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
#endif
5252
#endif
5353

54-
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_DM9051, ETH_PHY_MAX } eth_phy_type_t;
54+
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_DM9051, ETH_PHY_KSZ8081, ETH_PHY_MAX } eth_phy_type_t;
5555

5656
class ETHClass {
5757
private:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.