mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #14374 from gschorcht/drivers/atwinc15x0_fix_lwip_netdev
pkg/lwip: fixes the netif handling for the atwinc15x0 driver
This commit is contained in:
commit
18b0bdaa81
@ -1,6 +1,6 @@
|
||||
USEMODULE += boards_common_arduino-mkr
|
||||
|
||||
ifneq (,$(filter gnrc_netdev_default,$(USEMODULE)))
|
||||
ifneq (,$(filter netdev_default,$(USEMODULE)))
|
||||
USEMODULE += atwinc15x0
|
||||
endif
|
||||
|
||||
|
@ -210,19 +210,11 @@ void lwip_bootstrap(void)
|
||||
#elif defined(MODULE_ATWINC15X0)
|
||||
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
||||
atwinc15x0_setup(&atwinc15x0_devs[i], &atwinc15x0_params[i]);
|
||||
#ifdef MODULE_LWIP_IPV4
|
||||
if (netif_add(&netif[0], IP4_ADDR_ANY, IP4_ADDR_ANY, IP4_ADDR_ANY,
|
||||
&atwinc15x0_devs[i], lwip_netdev_init, tcpip_input) == NULL) {
|
||||
if (_netif_add(&netif[0], &atwinc15x0_devs[i], lwip_netdev_init,
|
||||
tcpip_input) == NULL) {
|
||||
DEBUG("Could not add atwinc15x0 device\n");
|
||||
return;
|
||||
}
|
||||
#else /* MODULE_LWIP_IPV4 */
|
||||
if (netif_add(&netif[0], &atwinc15x0_devs[i], lwip_netdev_init,
|
||||
tcpip_input) == NULL) {
|
||||
DEBUG("Could not add atwinc15x0 device\n");
|
||||
return;
|
||||
}
|
||||
#endif /* MODULE_LWIP_IPV4 */
|
||||
}
|
||||
#elif defined(MODULE_ENC28J60)
|
||||
for (unsigned i = 0; i < LWIP_NETIF_NUMOF; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user