Skip to content

File lwipopts.h

FileList > base > config > lwipopts.h

Go to the source code of this file.

  • #include <sys/time.h>

Macros

Type Name
define LWIP_MDNS_RESPONDER 1
define LWIP_NETIF_HOSTNAME 1
define LWIP_SO_RCVBUF 1
define LWIP_TIMEVAL_PRIVATE 0
define LWIP_VERSION_SIMPLE (LWIP_VERSION_MAJOR * 10000 + LWIP_VERSION_MINOR * 100 + LWIP_VERSION_REVISION)
define MDNS_MAX_SERVICES 10
define SNTP_GET_SYSTEM_TIME (sec, us)
define SNTP_SERVER_DNS 1
define SNTP_SET_SYSTEM_TIME_US (sec, us)

Macro Definition Documentation

define LWIP_MDNS_RESPONDER

#define LWIP_MDNS_RESPONDER 1

define LWIP_NETIF_HOSTNAME

#define LWIP_NETIF_HOSTNAME 1

define LWIP_SO_RCVBUF

#define LWIP_SO_RCVBUF 1

define LWIP_TIMEVAL_PRIVATE

#define LWIP_TIMEVAL_PRIVATE 0

define LWIP_VERSION_SIMPLE

#define LWIP_VERSION_SIMPLE (LWIP_VERSION_MAJOR * 10000 + LWIP_VERSION_MINOR * 100 + LWIP_VERSION_REVISION)

define MDNS_MAX_SERVICES

#define MDNS_MAX_SERVICES 10

define SNTP_GET_SYSTEM_TIME

#define SNTP_GET_SYSTEM_TIME (
    sec,
    us
) do {                                                                                                               \
        struct timeval tv = {.tv_sec = 0, .tv_usec = 0};                                                               \
        gettimeofday(&tv, NULL);                                                                                       \
        (sec) = tv.tv_sec;                                                                                             \
        (us)  = tv.tv_usec;                                                                                            \
    } while (0);

define SNTP_SERVER_DNS

#define SNTP_SERVER_DNS 1

Set this to 1 to support DNS names (or IP address strings) to set sntp servers One server address/name can be defined as default if SNTP_SERVER_DNS == 1: #define SNTP_SERVER_ADDRESS "pool.ntp.org"

define SNTP_SET_SYSTEM_TIME_US

#define SNTP_SET_SYSTEM_TIME_US (
    sec,
    us
) do {                                                                                                               \
        struct timeval tv = {.tv_sec = sec, .tv_usec = us};                                                            \
        settimeofday(&tv, NULL);                                                                                       \
    } while (0);

The documentation for this class was generated from the following file cores/common/base/config/lwipopts.h