Files
pico-examples/pico_w/wifi/freertos/ping/lwipopts.h
Peter Harper 5ba4cfc677 ping example app throws lwip assert (#394)
Now LWIP_PLATFORM_ASSERT has been fixed we're seeing an assert for the
ping example app.
It sets the SO_RCVTIMEO socket option which is not enabled.

Fixes #308
2023-06-08 10:02:25 -05:00

26 lines
648 B
C

#ifndef _LWIPOPTS_H
#define _LWIPOPTS_H
// Generally you would define your own explicit list of lwIP options
// (see https://www.nongnu.org/lwip/2_1_x/group__lwip__opts.html)
//
// This example uses a common include to avoid repetition
#include "lwipopts_examples_common.h"
#if !NO_SYS
#define TCPIP_THREAD_STACKSIZE 1024
#define DEFAULT_THREAD_STACKSIZE 1024
#define DEFAULT_RAW_RECVMBOX_SIZE 8
#define TCPIP_MBOX_SIZE 8
#define LWIP_TIMEVAL_PRIVATE 0
// not necessary, can be done either way
#define LWIP_TCPIP_CORE_LOCKING_INPUT 1
// ping_thread sets socket receive timeout, so enable this feature
#define LWIP_SO_RCVTIMEO 1
#endif
#endif