Skip to content

Commit 5f98370

Browse files
authored
Add IP101 support (espressif#4620)
1 parent 81b9130 commit 5f98370

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

libraries/WiFi/src/ETH.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include "eth_phy/phy.h"
2323
#include "eth_phy/phy_tlk110.h"
2424
#include "eth_phy/phy_lan8720.h"
25+
#include "eth_phy/phy_ip101.h"
2526
#include "lwip/err.h"
2627
#include "lwip/dns.h"
2728

@@ -78,6 +79,9 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
7879
} else if(type == ETH_PHY_TLK110){
7980
eth_config_t config = phy_tlk110_default_ethernet_config;
8081
memcpy(&eth_config, &config, sizeof(eth_config_t));
82+
} else if(type == ETH_PHY_IP101) {
83+
eth_config_t config = phy_ip101_default_ethernet_config;
84+
memcpy(&eth_config, &config, sizeof(eth_config_t));
8185
} else {
8286
log_e("Bad ETH_PHY type: %u", (uint8_t)type);
8387
return false;

libraries/WiFi/src/ETH.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#define ETH_CLK_MODE ETH_CLOCK_GPIO0_IN
4949
#endif
5050

51-
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_MAX } eth_phy_type_t;
51+
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_IP101, ETH_PHY_MAX } eth_phy_type_t;
5252

5353
class ETHClass {
5454
private:

0 commit comments

Comments
 (0)