Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion additions/usb_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,25 @@

#define CONFIG_USB_DWC2_DMA_ENABLE

#elif CONFIG_IDF_TARGET_ESP32C5 || CONFIG_IDF_TARGET_ESP32P4
#elif CONFIG_IDF_TARGET_ESP32C5
#define CONFIG_USB_HS
#define ESP_USBD_BASE 0x60080000
// todo: check c5, p4 in later
#define CONFIG_USBDEV_EP_NUM 7
#elif CONFIG_IDF_TARGET_ESP32P4
#define CONFIG_USB_HS
#define ESP_USBD_BASE 0x50000000
// p4 tested
#define CONFIG_USBDEV_EP_NUM 8
#define CONFIG_USB_DWC2_RXALL_FIFO_SIZE (896 - 512 * 8)
#define CONFIG_USB_DWC2_TX0_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX1_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX2_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX3_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX4_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX5_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX6_FIFO_SIZE (512)
#define CONFIG_USB_DWC2_TX7_FIFO_SIZE (512)
#else
#error "Unsupported SoC"
#endif
Expand Down