Added Ethernet Component for ESP IDF with JL1101 PHY driver (#4009)

Co-authored-by: Michał Obrembski <michal@obrembski.com>
This commit is contained in:
Michał Obrembski
2023-02-07 00:54:59 +01:00
committed by GitHub
parent 124ab31f22
commit d3627f0972
4 changed files with 346 additions and 0 deletions
@@ -18,6 +18,7 @@ enum EthernetType {
ETHERNET_TYPE_RTL8201,
ETHERNET_TYPE_DP83848,
ETHERNET_TYPE_IP101,
ETHERNET_TYPE_JL1101,
};
struct ManualIP {
@@ -82,6 +83,7 @@ class EthernetComponent : public Component {
// NOLINTNEXTLINE(cppcoreguidelines-avoid-non-const-global-variables)
extern EthernetComponent *global_eth_component;
extern "C" esp_eth_phy_t *esp_eth_phy_new_jl1101(const eth_phy_config_t *config);
} // namespace ethernet
} // namespace esphome