pico_lwip_freertos

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...
 

Detailed Description

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.

Function Documentation

◆ lwip_freertos_deinit()

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.

Parameters
contextthe async_context the lwip_freertos support was added to via lwip_freertos_init

◆ 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

Parameters
contextthe 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.
Returns
true if the initialization succeeded