1
0
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:
benpicco 2022-08-02 21:38:24 +02:00 committed by GitHub
commit 307ece1bf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -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 */

View File

@ -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 */

View File

@ -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;
/** @} */