forked from cvra/nastya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lwipopts.h
55 lines (43 loc) · 1.12 KB
/
lwipopts.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
* lwipopts.h
*
* Created on: Oct 31, 2013
* Author: Antoine
*/
#ifndef LWIPOPTS_H_
#define LWIPOPTS_H_
#include "tasks.h"
/* Network Time protocol config. */
#define SNTP_SERVER_ADDRESS "77.245.18.26" /* pool.ntp.org */
#define SNTP_SET_SYSTEM_TIME_US(sec, us) time_set(sec, us)
#define SNTP_SOCKET 1
#define SNTP_UPDATE_DELAY (60*1000) /* sync every minute */
#define SYS_LIGHTWEIGHT_PROT 0
#define MEM_LIBC_MALLOC 1
#define MEMP_MEM_MALLOC 1
#define MEM_ALIGNMENT 4
#define IP_FORWARD 1
#define IP_REASSEMBLY 0
#define IP_FRAG 0
#define LWIP_BROADCAST_PING 1
#define LWIP_MULTICAST_PING 1
#define LWIP_DNS 0
#define LWIP_HAVE_LOOPIF 1
#define LWIP_NETIF_LOOPBACK 1
//#define IP_OPTIONS_ALLOWED 1
//#define TCP_MSS 256
//#define TCP_SND_BUF (TCP_MSS<<1)
#ifdef __unix__
/* <sys/time.h> is included in cc.h! */
#define LWIP_TIMEVAL_PRIVATE 0
#define LWIP_ARP 1
#define LWIP_HAVE_SLIPIF 0
#else
#define LWIP_ARP 0
#define LWIP_HAVE_SLIPIF 1
#endif
//#define LWIP_DEBUG 1
#define MEM_SIZE 10000
/* Should never be used. */
#define DEFAULT_THREAD_PRIO 255
#endif /* LWIPOPTS_H_ */