1
0
mirror of https://github.com/esphome/esphome.git synced 2025-11-20 00:35:44 +00:00

[ethernet] Conditionally compile PHY-specific code to reduce flash usage (#10747)

This commit is contained in:
J. Nick Koston
2025-09-15 18:46:07 -05:00
committed by GitHub
parent 4859fe67eb
commit f3ac21b3b4
4 changed files with 18 additions and 0 deletions

View File

@@ -104,8 +104,10 @@ class EthernetComponent : public Component {
void start_connect_();
void finish_connect_();
void dump_connect_params_();
#ifdef USE_ETHERNET_KSZ8081
/// @brief Set `RMII Reference Clock Select` bit for KSZ8081.
void ksz8081_set_clock_reference_(esp_eth_mac_t *mac);
#endif
/// @brief Set arbitratry PHY registers from config.
void write_phy_register_(esp_eth_mac_t *mac, PHYRegister register_data);