From cd8b103a71101b18b4e0a3e3e33cd9943fc29e29 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Wed, 8 May 2024 19:28:20 +0800 Subject: update rtt config check --- third_party/rt-thread-5.0/usb_check.c | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/third_party/rt-thread-5.0/usb_check.c b/third_party/rt-thread-5.0/usb_check.c index 247c0ad2..89ce3e97 100644 --- a/third_party/rt-thread-5.0/usb_check.c +++ b/third_party/rt-thread-5.0/usb_check.c @@ -23,22 +23,14 @@ #endif #ifndef LWIP_NO_RX_THREAD -#error must enable LWIP_NO_RX_THREAD, we do not use rtthread eth thread +#error must enable LWIP_NO_TX_THREAD, we do not use rtthread eth rx thread #endif -#ifndef LWIP_NO_TX_THREAD -#error must enable LWIP_NO_TX_THREAD, we do not use rtthread eth thread +#if LWIP_TCPIP_CORE_LOCKING_INPUT !=1 +#warning suggest you to set LWIP_TCPIP_CORE_LOCKING_INPUT to 1, usb handles eth input with own thread #endif -#ifndef LWIP_NO_TX_THREAD -#error must enable LWIP_NO_TX_THREAD, we do not use rtthread eth thread -#endif - -#ifndef LWIP_TCPIP_CORE_LOCKING_INPUT -#error must set LWIP_TCPIP_CORE_LOCKING_INPUT to 1, usb handle eth input with own thread -#endif - -#ifndef LWIP_TCPIP_CORE_LOCKING +#if LWIP_TCPIP_CORE_LOCKING !=1 #error must set LWIP_TCPIP_CORE_LOCKING to 1 #endif @@ -48,4 +40,4 @@ #endif -#endif \ No newline at end of file +#endif -- cgit v1.3.1