summaryrefslogtreecommitdiff
path: root/platform/rtthread
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2026-01-05 21:31:41 +0800
committersakumisu <[email protected]>2026-01-05 21:31:41 +0800
commit44d92be0133df09ac6109726883437830baf2d64 (patch)
tree45a7b89253c237b5004b150131bc144008300cb3 /platform/rtthread
parentd172c89eef87905b0d28b15fd3dd4d4a9a307851 (diff)
update(platform): remove net class weak api, check CONFIG_USBHOST_PLATFORM_* macro is defined or not in usbh_lwip.c
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'platform/rtthread')
-rw-r--r--platform/rtthread/usbh_lwip.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/platform/rtthread/usbh_lwip.c b/platform/rtthread/usbh_lwip.c
index 712847c4..292e5e3c 100644
--- a/platform/rtthread/usbh_lwip.c
+++ b/platform/rtthread/usbh_lwip.c
@@ -48,6 +48,14 @@
#error RT_LWIP_TCPTHREAD_STACKSIZE must be >= 2048
#endif
+#if !defined(CONFIG_USBHOST_PLATFORM_CDC_ECM) && \
+ !defined(CONFIG_USBHOST_PLATFORM_CDC_RNDIS) && \
+ !defined(CONFIG_USBHOST_PLATFORM_CDC_NCM) && \
+ !defined(CONFIG_USBHOST_PLATFORM_ASIX) && \
+ !defined(CONFIG_USBHOST_PLATFORM_RTL8152)
+#error "Please enable at least one USB Ethernet platform in usb_config.h or Kconfig"
+#endif
+
// #define CONFIG_USBHOST_PLATFORM_CDC_ECM
// #define CONFIG_USBHOST_PLATFORM_CDC_RNDIS
// #define CONFIG_USBHOST_PLATFORM_CDC_NCM