summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--third_party/rt-thread-5.0/usb_check.c18
1 files 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