[fix] delete useless code.

This commit is contained in:
liuxianliang 2021-06-28 11:44:29 +08:00
parent 9f45c13ac9
commit 81ccffb5e4
1 changed files with 0 additions and 4 deletions

View File

@ -92,10 +92,6 @@ void sys_arch_assert(const char* file, int line);
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0) #define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0) #define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
//#define SYS_ARCH_DECL_PROTECT(level)
//#define SYS_ARCH_PROTECT(level) rt_enter_critical()
//#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
#define SYS_ARCH_DECL_PROTECT(level) register rt_base_t level #define SYS_ARCH_DECL_PROTECT(level) register rt_base_t level
#define SYS_ARCH_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0) #define SYS_ARCH_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0)
#define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0) #define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0)