mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-15 09:33:50 +01:00
cpu/esp8266: add init function in dummy lwIP
Calling the initialization function ensures that the dummy lwIP library is used instead of the real lwIP, even if the esp_wifi module for esp8266 is not used.
This commit is contained in:
parent
0ffc26919f
commit
00ac8ea69a
@ -210,4 +210,11 @@ uint32_t espconn_init(uint32 arg)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
extern struct netif * eagle_lwip_getif(uint8_t index);
|
||||||
|
|
||||||
|
void esp_lwip_init(void)
|
||||||
|
{
|
||||||
|
netif_set_default((struct netif *)eagle_lwip_getif(0));
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* MODULE_ESP_SDK */
|
#endif /* MODULE_ESP_SDK */
|
||||||
|
|||||||
@ -123,6 +123,10 @@ void ets_run(void)
|
|||||||
ets_isr_unmask(BIT(ETS_SOFT_INUM));
|
ets_isr_unmask(BIT(ETS_SOFT_INUM));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* initialize dummy lwIP library to link it even if esp_wifi is not used */
|
||||||
|
extern void esp_lwip_init(void);
|
||||||
|
esp_lwip_init();
|
||||||
|
|
||||||
thread_create(ets_task_stack, sizeof(ets_task_stack),
|
thread_create(ets_task_stack, sizeof(ets_task_stack),
|
||||||
ETS_TASK_PRIORITY,
|
ETS_TASK_PRIORITY,
|
||||||
THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
|
THREAD_CREATE_WOUT_YIELD | THREAD_CREATE_STACKTEST,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user