Skip to content

Commit

Permalink
Add support for the Microchip LAN8742 Ethernet PHY chip.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewpa committed Oct 8, 2021
1 parent 8253120 commit 5a46de1
Show file tree
Hide file tree
Showing 3 changed files with 466 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/esp_eth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if(CONFIG_ETH_ENABLED)
"src/esp_eth_phy_ip101.c"
"src/esp_eth_phy_ksz80xx.c"
"src/esp_eth_phy_lan8720.c"
"src/esp_eth_phy_lan8742.c"
"src/esp_eth_phy_rtl8201.c")
endif()

Expand Down
11 changes: 11 additions & 0 deletions components/esp_eth/include/esp_eth_phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,17 @@ esp_eth_phy_t *esp_eth_phy_new_rtl8201(const eth_phy_config_t *config);
*/
esp_eth_phy_t *esp_eth_phy_new_lan8720(const eth_phy_config_t *config);

/**
* @brief Create a PHY instance of LAN8742
*
* @param[in] config: configuration of PHY
*
* @return
* - instance: create PHY instance successfully
* - NULL: create PHY instance failed because some error occurred
*/
esp_eth_phy_t *esp_eth_phy_new_lan8742(const eth_phy_config_t *config);

/**
* @brief Create a PHY instance of DP83848
*
Expand Down
Loading

0 comments on commit 5a46de1

Please sign in to comment.