mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #17745 from leandrolanzieri/cpu/esp32/esp-eth/move_auto_init
cpu/esp32/esp-eth: move GNRC auto_init to init_devs
This commit is contained in:
commit
2d89399047
@ -29,6 +29,7 @@ INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/tcpip_adapter
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)
|
||||
|
||||
ifneq (,$(filter esp_eth,$(USEMODULE)))
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/esp-eth
|
||||
INCLUDES += -I$(RIOTCPU)/$(CPU)/vendor/esp-idf/include/ethernet
|
||||
endif
|
||||
|
||||
|
@ -16,8 +16,6 @@
|
||||
* @author Gunar Schorcht <gunar@schorcht.net>
|
||||
*/
|
||||
|
||||
#if defined(MODULE_ESP_ETH) && defined(MODULE_GNRC_NETIF_ETHERNET)
|
||||
|
||||
#include "esp_eth_params.h"
|
||||
#include "esp_eth_netdev.h"
|
||||
#include "net/gnrc/netif/ethernet.h"
|
||||
@ -39,10 +37,4 @@ void auto_init_esp_eth(void)
|
||||
gnrc_netif_ethernet_create(&_netif, _esp_eth_stack, ESP_ETH_STACKSIZE, ESP_ETH_PRIO,
|
||||
"netif-esp-eth", &_esp_eth_dev.netdev);
|
||||
}
|
||||
|
||||
#else /* defined(MODULE_ESP_ETH) && defined(MODULE_GNRC_NETIF_ETHERNET) */
|
||||
|
||||
typedef int dont_be_pedantic;
|
||||
|
||||
#endif /* defined(MODULE_ESP_ETH) && defined(MODULE_GNRC_NETIF_ETHERNET) */
|
||||
/**@}*/
|
Loading…
Reference in New Issue
Block a user