提交 81ccffb5 编写于 作者: L liuxianliang

[fix] delete useless code.

上级 9f45c13a
......@@ -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_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_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0)
#define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册