Glue library for integration lwIP in NO_SYS=0
mode with the SDK. Simple init
and deinit
are all that is required to hook up lwIP (with full blocking API support) via an async_context instance.
More...
Functions | |
bool | lwip_freertos_init (async_context_t *context) |
Initializes lwIP (NO_SYS=0 mode) support support for FreeRTOS using the provided async_context. More... | |
void | lwip_freertos_deinit (async_context_t *context) |
De-initialize lwIP (NO_SYS=0 mode) support for FreeRTOS. More... | |
Glue library for integration lwIP in NO_SYS=0
mode with the SDK. Simple init
and deinit
are all that is required to hook up lwIP (with full blocking API support) via an async_context instance.
void lwip_freertos_deinit | ( | async_context_t * | context | ) |
De-initialize lwIP (NO_SYS=0 mode) support for FreeRTOS.
Note that since lwIP may only be initialized once, and doesn't itself provide a shutdown mechanism, lwIP itself may still consume resources.
It is however safe to call lwip_freertos_init again later.
context | the async_context the lwip_freertos support was added to via lwip_freertos_init |
bool lwip_freertos_init | ( | async_context_t * | context | ) |
Initializes lwIP (NO_SYS=0 mode) support support for FreeRTOS using the provided async_context.
If the initialization succeeds, lwip_freertos_deinit() can be called to shutdown lwIP support
context | the async_context instance that provides the abstraction for handling asynchronous work. Note in general this would be an async_context_freertos instance, though it doesn't have to be. |