Skip to content

Commit 8504391

Browse files
committed
alif/lwip_inc: Refactor lwipopts.h to use extmod's common options.
This change is a no-op for the firmware. Signed-off-by: Damien George <damien@micropython.org>
1 parent 628d53d commit 8504391

File tree

1 file changed

+5
-38
lines changed

1 file changed

+5
-38
lines changed

ports/alif/lwip_inc/lwipopts.h

Lines changed: 5 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,13 @@
11
#ifndef MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H
22
#define MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H
33

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
254
#define LWIP_NETIF_EXT_STATUS_CALLBACK 1
265

276
#define LWIP_LOOPIF_MULTICAST 1
287
#define LWIP_LOOPBACK_MAX_PBUFS 8
298

309
#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+
4711
#define LWIP_RAND() se_services_rand64()
4812

4913
#define MEM_SIZE (16 * 1024)
@@ -55,6 +19,9 @@ extern uint64_t se_services_rand64(void);
5519
#define TCP_QUEUE_OOSEQ (1)
5620
#define MEMP_NUM_TCP_SEG (2 * TCP_SND_QUEUELEN)
5721

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);
5926

6027
#endif // MICROPY_INCLUDED_ALIF_LWIP_LWIPOPTS_H

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy