mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #18391 from gschorcht/cpu/esp/fix_netdev_register
cpu/esp: fix netdev register
This commit is contained in:
commit
307ece1bf5
@ -458,6 +458,8 @@ void esp_eth_setup(esp_eth_netdev_t* dev)
|
||||
_esp_eth_dev.link_up = false;
|
||||
_esp_eth_dev.rx_len = 0;
|
||||
_esp_eth_dev.tx_len = 0;
|
||||
|
||||
netdev_register(&dev->netdev, NETDEV_ESP_ETH, 0);
|
||||
}
|
||||
|
||||
#endif /* MODULE_ESP_ETH */
|
||||
|
@ -983,6 +983,8 @@ void esp_wifi_setup (esp_wifi_netdev_t* dev)
|
||||
dev->event_disc = 0;
|
||||
dev->connected = false;
|
||||
#endif /* MODULE_ESP_WIFI_AP */
|
||||
|
||||
netdev_register(&dev->netdev, NETDEV_ESP_WIFI, 0);
|
||||
}
|
||||
|
||||
#endif /* MODULE_ESP_WIFI */
|
||||
|
@ -329,6 +329,8 @@ typedef enum {
|
||||
NETDEV_ENCX24J600,
|
||||
NETDEV_ATWINC15X0,
|
||||
NETDEV_KW2XRF,
|
||||
NETDEV_ESP_ETH,
|
||||
NETDEV_ESP_WIFI,
|
||||
/* add more if needed */
|
||||
} netdev_type_t;
|
||||
/** @} */
|
||||
|
Loading…
Reference in New Issue
Block a user