[realtek-ambz2] Replace lwIP with external port

This commit is contained in:
Kuba Szczodrzyński
2023-05-27 20:54:40 +02:00
parent 4532c88873
commit babdb1287f
6 changed files with 52 additions and 32 deletions

View File

@@ -4,8 +4,14 @@
#include_next "lwipopts.h"
#define ip_addr ip4_addr // LwIP 2.0.x compatibility
#define ip_addr_t ip4_addr_t // LwIP 2.0.x compatibility
#if (!defined(LWIP_IPV4) || LWIP_IPV4) && !LWIP_IPV6
#define ip_addr ip4_addr // LwIP 2.0.x compatibility
#define ip_addr_t ip4_addr_t // LwIP 2.0.x compatibility
#endif
#if !LWIP_IPV4 && LWIP_IPV6
#define ip_addr ip6_addr // LwIP 2.0.x compatibility
#define ip_addr_t ip6_addr_t // LwIP 2.0.x compatibility
#endif
#define in_addr_t u32_t
#define IN_ADDR_T_DEFINED 1

View File

@@ -0,0 +1,10 @@
/* Copyright (c) Kuba Szczodrzyński 2023-05-27. */
#pragma once
// lwipopts.h defines `unsigned int sys_now()`, while lwip/sys.h defines `u32_t sys_now()`
// since u32_t is unsigned long, these are incompatible
#define sys_now sys_now_dummy
#include_next "lwipopts.h"
#undef sys_now
extern unsigned long sys_now(void);

View File

@@ -0,0 +1,5 @@
/* Copyright (c) Kuba Szczodrzyński 2023-05-27. */
#undef IFNAMSIZ
#include_next "wireless.h"