From 4ce8c507b0c654be64c3e3c67693fb31167a729f Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Sun, 13 Jul 2025 16:39:33 +0800 Subject: [PATCH] update(demo): remove ep num check Signed-off-by: sakumisu <1203593632@qq.com> --- demo/cdc_acm_hid_msc_template.c | 4 ---- demo/cdc_acm_msc_template.c | 4 ---- demo/cdc_acm_multi_template.c | 4 ---- demo/winusb2.0_cdc_template.c | 4 ---- demo/winusb2.0_hid_template.c | 4 ---- 5 files changed, 20 deletions(-) diff --git a/demo/cdc_acm_hid_msc_template.c b/demo/cdc_acm_hid_msc_template.c index 09b680a2..0851cf89 100644 --- a/demo/cdc_acm_hid_msc_template.c +++ b/demo/cdc_acm_hid_msc_template.c @@ -8,10 +8,6 @@ #include "usbd_cdc_acm.h" #include "usbd_hid.h" -#if CONFIG_USBDEV_EP_NUM < 7 -#error endpoint number is too small for this demo, please try other chips -#endif - /*!< endpoint address */ #define CDC_IN_EP 0x81 #define CDC_OUT_EP 0x02 diff --git a/demo/cdc_acm_msc_template.c b/demo/cdc_acm_msc_template.c index 2a5db746..e889cbc8 100644 --- a/demo/cdc_acm_msc_template.c +++ b/demo/cdc_acm_msc_template.c @@ -7,10 +7,6 @@ #include "usbd_cdc_acm.h" #include "usbd_msc.h" -#if CONFIG_USBDEV_EP_NUM < 6 -#error endpoint number is too small for this demo, please try other chips -#endif - /*!< endpoint address */ #define CDC_IN_EP 0x81 #define CDC_OUT_EP 0x02 diff --git a/demo/cdc_acm_multi_template.c b/demo/cdc_acm_multi_template.c index 12399e5c..80b40b02 100644 --- a/demo/cdc_acm_multi_template.c +++ b/demo/cdc_acm_multi_template.c @@ -6,10 +6,6 @@ #include "usbd_core.h" #include "usbd_cdc_acm.h" -#if CONFIG_USBDEV_EP_NUM < 8 -#error endpoint number is too small for this demo, please try other chips -#endif - /*!< endpoint address */ #define CDC_IN_EP 0x81 #define CDC_OUT_EP 0x01 diff --git a/demo/winusb2.0_cdc_template.c b/demo/winusb2.0_cdc_template.c index 4e2a0c0b..3ccafe32 100644 --- a/demo/winusb2.0_cdc_template.c +++ b/demo/winusb2.0_cdc_template.c @@ -6,10 +6,6 @@ #include "usbd_core.h" #include "usbd_cdc_acm.h" -#if CONFIG_USBDEV_EP_NUM < 6 -#error endpoint number is too small for this demo, please try other chips -#endif - #define WINUSB_IN_EP 0x81 #define WINUSB_OUT_EP 0x02 diff --git a/demo/winusb2.0_hid_template.c b/demo/winusb2.0_hid_template.c index 5865b088..d0c1774a 100644 --- a/demo/winusb2.0_hid_template.c +++ b/demo/winusb2.0_hid_template.c @@ -6,10 +6,6 @@ #include "usbd_core.h" #include "usbd_hid.h" -#if CONFIG_USBDEV_EP_NUM < 4 -#error endpoint number is too small for this demo, please try other chips -#endif - #define WINUSB_IN_EP 0x81 #define WINUSB_OUT_EP 0x02