[realtek-ambz2] Replace lwIP with external port
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
10
cores/realtek-ambz2/base/config/lwipopts.h
Normal file
10
cores/realtek-ambz2/base/config/lwipopts.h
Normal 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);
|
||||
5
cores/realtek-ambz2/base/fixups/wireless.h
Normal file
5
cores/realtek-ambz2/base/fixups/wireless.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/* Copyright (c) Kuba Szczodrzyński 2023-05-27. */
|
||||
|
||||
#undef IFNAMSIZ
|
||||
|
||||
#include_next "wireless.h"
|
||||
Reference in New Issue
Block a user