From 05e5730cc2da7a044e25879136366fa726e46b29 Mon Sep 17 00:00:00 2001 From: sakumisu <1203593632@qq.com> Date: Mon, 19 May 2025 17:04:40 +0800 Subject: [PATCH] update: enable CONFIG_USBDEV_ADVANCE_DESC as default Signed-off-by: sakumisu <1203593632@qq.com> --- cherryusb_config_template.h | 2 +- osal/idf/usb_config.h | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h index f000d7e9..8f2f5652 100644 --- a/cherryusb_config_template.h +++ b/cherryusb_config_template.h @@ -60,7 +60,7 @@ // #define CONFIG_USBDEV_TEST_MODE /* enable advance desc register api */ -// CONFIG_USBDEV_ADVANCE_DESC +#define CONFIG_USBDEV_ADVANCE_DESC /* move ep0 setup handler from isr to thread */ // #define CONFIG_USBDEV_EP0_THREAD diff --git a/osal/idf/usb_config.h b/osal/idf/usb_config.h index dde3bccb..b970f705 100644 --- a/osal/idf/usb_config.h +++ b/osal/idf/usb_config.h @@ -271,4 +271,6 @@ #define CONFIG_USBHOST_PIPE_NUM 8 #else #error "Unsupported SoC" -#endif \ No newline at end of file +#endif + +#define CONFIG_USBDEV_ADVANCE_DESC \ No newline at end of file