move code to instantiate network devices to NetworkDeviceInstantiator class

This commit is contained in:
technyon
2024-08-18 09:15:30 +02:00
parent 0b423ee29d
commit 2d8ec7d8df
7 changed files with 186 additions and 152 deletions

View File

@@ -74,6 +74,7 @@ std::string NetworkUtil::GetCustomEthernetDeviceName(int custPHY)
}
}
#if defined(CONFIG_IDF_TARGET_ESP32)
eth_phy_type_t NetworkUtil::GetCustomEthernetType(int custPHY)
{
switch(custPHY)
@@ -120,3 +121,4 @@ eth_clock_mode_t NetworkUtil::GetCustomClock(int custCLKpref)
break;
}
}
#endif