1
1
#ifndef MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H
2
2
#define MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H
3
3
4
- #include <stdint.h>
5
-
6
- // This protection is not needed, instead we execute all lwIP code at PendSV priority
7
- #define SYS_ARCH_DECL_PROTECT (lev ) do { } while (0)
8
- #define SYS_ARCH_PROTECT (lev ) do { } while (0)
9
- #define SYS_ARCH_UNPROTECT (lev ) do { } while (0)
10
-
11
- #define NO_SYS 1
12
- #define SYS_LIGHTWEIGHT_PROT 1
13
- #define MEM_ALIGNMENT 4
14
-
15
- #define LWIP_CHKSUM_ALGORITHM 3
16
- #define LWIP_CHECKSUM_CTRL_PER_NETIF 1
17
-
18
- #define LWIP_ARP 1
19
- #define LWIP_ETHERNET 1
20
- #define LWIP_RAW 1
21
- #define LWIP_NETCONN 0
22
- #define LWIP_SOCKET 0
23
- #define LWIP_STATS 0
24
- #define LWIP_NETIF_HOSTNAME 1
25
4
#define LWIP_NETIF_EXT_STATUS_CALLBACK 1
26
5
27
6
#define LWIP_LOOPIF_MULTICAST 1
28
7
#define LWIP_LOOPBACK_MAX_PBUFS 8
29
8
30
9
#define LWIP_IPV6 0
31
- #define LWIP_DHCP 1
32
- #define LWIP_DHCP_CHECK_LINK_UP 1
33
- #define LWIP_DHCP_DOES_ACD_CHECK 0 // to speed DHCP up
34
- #define LWIP_DNS 1
35
- #define LWIP_DNS_SUPPORT_MDNS_QUERIES 1
36
- #define LWIP_MDNS_RESPONDER 1
37
- #define LWIP_IGMP 1
38
-
39
- #define LWIP_NUM_NETIF_CLIENT_DATA LWIP_MDNS_RESPONDER
40
- #define MEMP_NUM_UDP_PCB (4 + LWIP_MDNS_RESPONDER)
41
- #define MEMP_NUM_SYS_TIMEOUT (LWIP_NUM_SYS_TIMEOUT_INTERNAL + LWIP_MDNS_RESPONDER)
42
-
43
- #define SO_REUSE 1
44
- #define TCP_LISTEN_BACKLOG 1
45
-
46
- extern uint64_t se_services_rand64 (void );
10
+
47
11
#define LWIP_RAND () se_services_rand64()
48
12
49
13
#define MEM_SIZE (16 * 1024)
@@ -55,6 +19,9 @@ extern uint64_t se_services_rand64(void);
55
19
#define TCP_QUEUE_OOSEQ (1)
56
20
#define MEMP_NUM_TCP_SEG (2 * TCP_SND_QUEUELEN)
57
21
58
- typedef uint32_t sys_prot_t ;
22
+ // Include common lwIP configuration.
23
+ #include "extmod/lwip-include/lwipopts_common.h"
24
+
25
+ uint64_t se_services_rand64 (void );
59
26
60
27
#endif // MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H
0 commit comments