summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-07-27 10:26:31 +0800
committersakumisu <[email protected]>2025-07-27 10:26:31 +0800
commitc102f4adfafb6ab7786e89955c9eacc9df27ccd5 (patch)
tree60e7fa8262da32edf4a2244f210efe58fb4a040e
parentd589b9417d62770af225cb2ed7a9810605efae80 (diff)
update(usb_config): change CONFIG_USBHOST_MAX_INTF_ALTSETTINGS to 1 as default for less memory usage
Signed-off-by: sakumisu <[email protected]>
-rw-r--r--cherryusb_config_template.h2
-rw-r--r--osal/idf/usb_config.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/cherryusb_config_template.h b/cherryusb_config_template.h
index 941f1887..e7758251 100644
--- a/cherryusb_config_template.h
+++ b/cherryusb_config_template.h
@@ -154,7 +154,7 @@
#define CONFIG_USBHOST_MAX_EXTHUBS 1
#define CONFIG_USBHOST_MAX_EHPORTS 4
#define CONFIG_USBHOST_MAX_INTERFACES 8
-#define CONFIG_USBHOST_MAX_INTF_ALTSETTINGS 8
+#define CONFIG_USBHOST_MAX_INTF_ALTSETTINGS 1
#define CONFIG_USBHOST_MAX_ENDPOINTS 4
#define CONFIG_USBHOST_MAX_CDC_ACM_CLASS 4
diff --git a/osal/idf/usb_config.h b/osal/idf/usb_config.h
index 634efc4a..f66724f8 100644
--- a/osal/idf/usb_config.h
+++ b/osal/idf/usb_config.h
@@ -153,7 +153,7 @@
#define CONFIG_USBHOST_MAX_EXTHUBS 1
#define CONFIG_USBHOST_MAX_EHPORTS 4
#define CONFIG_USBHOST_MAX_INTERFACES 8
-#define CONFIG_USBHOST_MAX_INTF_ALTSETTINGS 8
+#define CONFIG_USBHOST_MAX_INTF_ALTSETTINGS 1
#define CONFIG_USBHOST_MAX_ENDPOINTS 4
#define CONFIG_USBHOST_MAX_CDC_ACM_CLASS 4