|
|
@@ -240,9 +240,8 @@ esp_eth_phy_t *esp_eth_phy_new_lan8720(const eth_phy_config_t *config);
|
|
|
*/
|
|
|
esp_eth_phy_t *esp_eth_phy_new_dp83848(const eth_phy_config_t *config);
|
|
|
|
|
|
-#if CONFIG_ETH_SPI_ETHERNET_DM9051
|
|
|
/**
|
|
|
-* @brief Create a PHY instance of DM9051
|
|
|
+* @brief Create a PHY instance of KSZ8041
|
|
|
*
|
|
|
* @param[in] config: configuration of PHY
|
|
|
*
|
|
|
@@ -250,10 +249,11 @@ esp_eth_phy_t *esp_eth_phy_new_dp83848(const eth_phy_config_t *config);
|
|
|
* - instance: create PHY instance successfully
|
|
|
* - NULL: create PHY instance failed because some error occurred
|
|
|
*/
|
|
|
-esp_eth_phy_t *esp_eth_phy_new_dm9051(const eth_phy_config_t *config);
|
|
|
+esp_eth_phy_t *esp_eth_phy_new_ksz8041(const eth_phy_config_t *config);
|
|
|
|
|
|
+#if CONFIG_ETH_SPI_ETHERNET_DM9051
|
|
|
/**
|
|
|
-* @brief Create a PHY instance of KSZ8041
|
|
|
+* @brief Create a PHY instance of DM9051
|
|
|
*
|
|
|
* @param[in] config: configuration of PHY
|
|
|
*
|
|
|
@@ -261,8 +261,9 @@ esp_eth_phy_t *esp_eth_phy_new_dm9051(const eth_phy_config_t *config);
|
|
|
* - instance: create PHY instance successfully
|
|
|
* - NULL: create PHY instance failed because some error occurred
|
|
|
*/
|
|
|
-esp_eth_phy_t *esp_eth_phy_new_ksz8041(const eth_phy_config_t *config);
|
|
|
+esp_eth_phy_t *esp_eth_phy_new_dm9051(const eth_phy_config_t *config);
|
|
|
#endif
|
|
|
+
|
|
|
#ifdef __cplusplus
|
|
|
}
|
|
|
#endif
|