Add GPIO0 OUT

This commit is contained in:
iranl
2025-02-20 22:43:35 +01:00
parent fb178e0bf8
commit 6bfb826471
3 changed files with 7 additions and 2 deletions

View File

@@ -6984,7 +6984,7 @@ const std::vector<std::pair<String, String>> WebCfgServer::getNetworkCustomPHYOp
#if defined(CONFIG_IDF_TARGET_ESP32)
options.push_back(std::make_pair("4", "LAN8720"));
options.push_back(std::make_pair("5", "RTL8201"));
options.push_back(std::make_pair("6", "TLK110"));
options.push_back(std::make_pair("6", "TLK110/IP101"));
options.push_back(std::make_pair("7", "DP83848"));
options.push_back(std::make_pair("8", "KSZ8041"));
options.push_back(std::make_pair("9", "KSZ8081"));
@@ -6997,6 +6997,7 @@ const std::vector<std::pair<String, String>> WebCfgServer::getNetworkCustomCLKOp
{
std::vector<std::pair<String, String>> options;
options.push_back(std::make_pair("0", "GPIO0 IN"));
options.push_back(std::make_pair("1", "GPIO0 OUT"));
options.push_back(std::make_pair("2", "GPIO16 OUT"));
options.push_back(std::make_pair("3", "GPIO17 OUT"));
return options;

View File

@@ -3,6 +3,7 @@
#ifndef CONFIG_IDF_TARGET_ESP32
typedef enum {
ETH_CLOCK_GPIO0_IN = 0,
ETH_CLOCK_GPIO0_OUT = 1,
ETH_CLOCK_GPIO16_OUT = 2,
ETH_CLOCK_GPIO17_OUT = 3
} eth_clock_mode_t;

View File

@@ -65,7 +65,7 @@ std::string NetworkUtil::GetCustomEthernetDeviceName(int custPHY)
case 5:
return"Custom (RTL8201)";
case 6:
return "Custom (TLK110)";
return "Custom (TLK110/IP101)";
case 7:
return "Custom (DP83848)";
case 8:
@@ -113,6 +113,9 @@ eth_clock_mode_t NetworkUtil::GetCustomClock(int custCLKpref)
case 0:
return ETH_CLOCK_GPIO0_IN;
break;
case 1:
return ETH_CLOCK_GPIO0_OUT;
break;
case 2:
return ETH_CLOCK_GPIO16_OUT;
break;