diff options
| author | sakumisu <[email protected]> | 2024-08-31 21:01:36 +0800 |
|---|---|---|
| committer | sakumisu <[email protected]> | 2024-08-31 21:01:36 +0800 |
| commit | e42e99e9755fd49df7ea909d37339b5f3188f595 (patch) | |
| tree | 7917d2d0015f2e999418c54838e0b0f4f53e58c8 | |
| parent | 8a7979378d8dd119b2bc5b014e6b38ec20099c83 (diff) | |
update(platform/usbh_lwip): check lwip min stack size
| -rw-r--r-- | platform/none/usbh_lwip.c | 4 | ||||
| -rw-r--r-- | platform/rtthread/usb_check.c | 4 | ||||
| -rw-r--r-- | platform/rtthread/usbh_lwip.c | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/platform/none/usbh_lwip.c b/platform/none/usbh_lwip.c index 16d4f306..d84f02cb 100644 --- a/platform/none/usbh_lwip.c +++ b/platform/none/usbh_lwip.c @@ -31,6 +31,10 @@ #error PBUF_POOL_BUFSIZE must be larger than 1600 #endif +#if TCPIP_THREAD_STACKSIZE < 1024 +#error "TCPIP_THREAD_STACKSIZE must be >= 1024" +#endif + // #define CONFIG_USBHOST_PLATFORM_CDC_ECM // #define CONFIG_USBHOST_PLATFORM_CDC_RNDIS // #define CONFIG_USBHOST_PLATFORM_CDC_NCM diff --git a/platform/rtthread/usb_check.c b/platform/rtthread/usb_check.c index de0d4802..10302f4f 100644 --- a/platform/rtthread/usb_check.c +++ b/platform/rtthread/usb_check.c @@ -7,11 +7,11 @@ #endif #if IDLE_THREAD_STACK_SIZE < 2048 -#error "IDLE_THREAD_STACK_SIZE must be greater than or equal to 2048" +#error "IDLE_THREAD_STACK_SIZE must be >= 2048" #endif #if RT_TIMER_THREAD_STACK_SIZE < 2048 -#error "RT_TIMER_THREAD_STACK_SIZE must be greater than or equal to 2048" +#error "RT_TIMER_THREAD_STACK_SIZE must be >= 2048" #endif #endif diff --git a/platform/rtthread/usbh_lwip.c b/platform/rtthread/usbh_lwip.c index 074010af..43970555 100644 --- a/platform/rtthread/usbh_lwip.c +++ b/platform/rtthread/usbh_lwip.c @@ -44,6 +44,10 @@ #error PBUF_POOL_BUFSIZE must be larger than 1600 #endif +#if RT_LWIP_TCPTHREAD_STACKSIZE < 2048 +#error "RT_LWIP_TCPTHREAD_STACKSIZE must be >= 2048" +#endif + // #define CONFIG_USBHOST_PLATFORM_CDC_ECM // #define CONFIG_USBHOST_PLATFORM_CDC_RNDIS // #define CONFIG_USBHOST_PLATFORM_CDC_NCM |
