55 lines
1.0 KiB
C
55 lines
1.0 KiB
C
#ifndef _LWIPOPTS_H
|
|
#define _LWIPOPTS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#define HTTPD_FSDATA_FILE "src/fsdata.c"
|
|
|
|
#define NO_SYS 1
|
|
#define LWIP_SOCKET 0
|
|
#define LWIP_NETCONN 0
|
|
|
|
#define LWIP_IPV4 1
|
|
#define LWIP_TCP 1
|
|
#define LWIP_UDP 1
|
|
#define LWIP_DHCP 1
|
|
#define LWIP_DNS 1
|
|
#define LWIP_RAW 1
|
|
#define LWIP_ARP 1
|
|
#define LWIP_ETHERNET 1
|
|
#define LWIP_ICMP 1
|
|
|
|
#define LWIP_HTTPD 1
|
|
#define LWIP_HTTPD_CGI 1
|
|
#define LWIP_HTTPD_SSI 1
|
|
#define LWIP_HTTPD_SUPPORT_POST 1
|
|
|
|
#define LWIP_NETIF_HOSTNAME 1
|
|
#define LWIP_NETIF_STATUS_CALLBACK 1
|
|
|
|
#define MEM_ALIGNMENT 4
|
|
#define MEM_SIZE 4000
|
|
#define MEMP_NUM_TCP_SEG 32
|
|
#define PBUF_POOL_SIZE 24
|
|
#define MEMP_NUM_SYS_TIMEOUT 20
|
|
|
|
#define MQTT_OUTPUT_RINGBUF_SIZE 2048
|
|
|
|
#define SNTP_SERVER_DNS 1
|
|
#define SNTP_SERVER_ADDRESS "de.pool.ntp.org"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
void sntp_set_system_time_us(uint32_t sec, uint32_t us);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#define SNTP_SET_SYSTEM_TIME_US(sec, us) sntp_set_system_time_us((sec), (us))
|
|
|
|
#define TCP_MSS 1460
|
|
#define TCP_WND (8 * TCP_MSS)
|
|
#define TCP_SND_BUF (8 * TCP_MSS)
|
|
|
|
#endif
|