summaryrefslogtreecommitdiff
path: root/osal
diff options
context:
space:
mode:
authorsakumisu <[email protected]>2025-12-12 22:45:10 +0800
committersakumisu <[email protected]>2025-12-12 22:45:10 +0800
commitda2263728aba07a28d9b6946b7acb6b0a0a97bb1 (patch)
tree2a53759e9992b54dbf582b8ba111e0c54e1bcf1d /osal
parent707e865627e65b9d661a431c92d57e50ab9d20ab (diff)
refactor(serial): add host serial framework
Signed-off-by: sakumisu <[email protected]>
Diffstat (limited to 'osal')
-rw-r--r--osal/idf/usb_config.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/osal/idf/usb_config.h b/osal/idf/usb_config.h
index 3eca2e79..c443c12e 100644
--- a/osal/idf/usb_config.h
+++ b/osal/idf/usb_config.h
@@ -28,7 +28,7 @@
// #define CONFIG_USB_DCACHE_ENABLE
-/* attribute data into no cache ram
+/* attribute data into no cache ram
* DRAM_DMA_ALIGNED_ATTR was introduced in IDF 5.3. If not defined, it falls back to DMA_ATTR
*/
#ifndef DRAM_DMA_ALIGNED_ATTR
@@ -158,7 +158,7 @@
#define CONFIG_USBHOST_MAX_INTF_ALTSETTINGS 2
#define CONFIG_USBHOST_MAX_ENDPOINTS 4
-#define CONFIG_USBHOST_MAX_CDC_ACM_CLASS 4
+#define CONFIG_USBHOST_MAX_SERIAL_CLASS 4
#define CONFIG_USBHOST_MAX_HID_CLASS 4
#define CONFIG_USBHOST_MAX_MSC_CLASS 2
#define CONFIG_USBHOST_MAX_AUDIO_CLASS 1
@@ -193,6 +193,10 @@
#define CONFIG_USBHOST_MSC_TIMEOUT 5000
#endif
+#ifndef CONFIG_USBHOST_SERIAL_RX_SIZE
+#define CONFIG_USBHOST_SERIAL_RX_SIZE 2048
+#endif
+
/* This parameter affects usb performance, and depends on (TCP_WND)tcp eceive windows size,
* you can change to 2K ~ 16K and must be larger than TCP RX windows size in order to avoid being overflow.
*/