feat: 保存已验证的CH390网络打通基线

This commit is contained in:
2026-04-17 07:09:55 +08:00
parent 59eecf428f
commit 6aba77df9a
44 changed files with 6428 additions and 3372 deletions
+30
View File
@@ -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