Skip to content

Commit 3110b11

Browse files
Jason2866Danii Mirsanov
andauthored
Ethernet driver JL1101 (#182)
* ESP Ethernet driver for JL1101 (Dingtian Relay Boards) github.com/arendst/Tasmota/discussions/16797 Co-authored-by: Danii Mirsanov <[email protected]>
1 parent 3572b41 commit 3110b11

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libraries/Ethernet/src/ETH.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ bool ETHClass::begin(uint8_t phy_addr, int power, int mdc, int mdio, eth_phy_typ
286286
case ETH_PHY_DP83848:
287287
eth_phy = esp_eth_phy_new_dp83848(&phy_config);
288288
break;
289+
case ETH_PHY_JL1101:
290+
eth_phy = esp_eth_phy_new_jl1101(&phy_config);
291+
break;
289292
#if CONFIG_ETH_SPI_ETHERNET_DM9051
290293
case ETH_PHY_DM9051:
291294
eth_phy = esp_eth_phy_new_dm9051(&phy_config);

libraries/Ethernet/src/ETH.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
typedef enum { ETH_CLOCK_GPIO0_IN, ETH_CLOCK_GPIO0_OUT, ETH_CLOCK_GPIO16_OUT, ETH_CLOCK_GPIO17_OUT } eth_clock_mode_t;
5454
#endif
5555

56-
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_DM9051, ETH_PHY_KSZ8041, ETH_PHY_KSZ8081, ETH_PHY_MAX } eth_phy_type_t;
56+
typedef enum { ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_DM9051, ETH_PHY_KSZ8041, ETH_PHY_KSZ8081, ETH_PHY_JL1101, ETH_PHY_MAX } eth_phy_type_t;
5757
#define ETH_PHY_IP101 ETH_PHY_TLK110
5858

5959
class ETHClass {

0 commit comments

Comments
 (0)