feat: 保存已验证的CH390网络打通基线
This commit is contained in:
@@ -13,6 +13,36 @@
|
||||
#include "lwip/arch.h"
|
||||
#include <stdlib.h>
|
||||
|
||||
/*
|
||||
* FreeRTOSConfig.h currently injects lwIP-related helper macros globally.
|
||||
* Those overrides break the normal lwIP sys.h/sys_arch contract by replacing
|
||||
* function declarations such as sys_now() with object-like macros.
|
||||
* Undefine them here so lwIP uses the port's real sys_arch implementation.
|
||||
*/
|
||||
#ifdef sys_now
|
||||
#undef sys_now
|
||||
#endif
|
||||
|
||||
#ifdef sys_arch_protect
|
||||
#undef sys_arch_protect
|
||||
#endif
|
||||
|
||||
#ifdef sys_arch_unprotect
|
||||
#undef sys_arch_unprotect
|
||||
#endif
|
||||
|
||||
#ifdef SYS_ARCH_DECL_PROTECT
|
||||
#undef SYS_ARCH_DECL_PROTECT
|
||||
#endif
|
||||
|
||||
#ifdef SYS_ARCH_PROTECT
|
||||
#undef SYS_ARCH_PROTECT
|
||||
#endif
|
||||
|
||||
#ifdef SYS_ARCH_UNPROTECT
|
||||
#undef SYS_ARCH_UNPROTECT
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user