[realtek-ambz] Update to external lwIP v2.0.0

This commit is contained in:
Kuba Szczodrzyński
2022-05-23 12:49:06 +02:00
parent 157dd2f407
commit bf4d8bb9be
12 changed files with 64 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-22. */
#pragma once
#include <lwip/err.h>

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-22. */
#pragma once
#include <lwip/timeouts.h>

View File

@@ -41,7 +41,10 @@
/* Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
should be used instead */
#define LWIP_COMPAT_MUTEX 1
#define LWIP_COMPAT_MUTEX 1
#define LWIP_COMPAT_MUTEX_ALLOWED 1
#define LWIP_TCPIP_TIMEOUT 1
#define ETHARP_TRUST_IP_MAC 0
#define IP_REASSEMBLY 1

View File

@@ -1,6 +1,7 @@
// CHANGES:
// - 2022-05-08 change CONFIG_USE_POLARSSL to CONFIG_USE_MBEDTLS
// - 2022-05-08 use static int errno
// - 2022-05-18 include lwip/init.h
/**
@@ -22,6 +23,7 @@
#undef errno // undefine __errno() macro
extern int errno; // use a static errno
#include <lwip/init.h>
/*For MP mode setting*/
//#define SUPPORT_MP_MODE 1

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-23. */
#pragma once
#include <lwip/sockets.h>

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-22. */
#pragma once
#include <lwip/sys.h>

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-22. */
#pragma once
#include <lwip/tcpip.h>

View File

@@ -0,0 +1,10 @@
/* Copyright (c) Kuba Szczodrzyński 2022-05-23. */
#pragma once
#include <lwip/udp.h>
// this is included only by wifi_simple_config.c
// which uses lwip_ntohl without parentheses
// so the #define from lwip/def.h doesn't work
#define lwip_ntohl lwip_htonl