try to add esp32 p4 and esp-idf v5.3 support

This commit is contained in:
hathach
2024-09-25 17:18:41 +07:00
parent bb2d1dd0c1
commit 7e472fa3ca
4 changed files with 93 additions and 51 deletions

View File

@@ -339,6 +339,12 @@
#define TUP_USBIP_DWC2_ESP32
#define TUP_DCD_ENDPOINT_MAX 6
#elif TU_CHECK_MCU(OPT_MCU_ESP32P4)
#define TUP_USBIP_DWC2
#define TUP_USBIP_DWC2_ESP32
#define TUP_RHPORT_HIGHSPEED 1 // 1 port FS, 1 port HS
#define TUP_DCD_ENDPOINT_MAX 8 // FS 6 ep, HS 8 ep
#elif TU_CHECK_MCU(OPT_MCU_ESP32, OPT_MCU_ESP32C2, OPT_MCU_ESP32C3, OPT_MCU_ESP32C6, OPT_MCU_ESP32H2)
#if (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421))
#error "MCUs are only supported with CFG_TUH_MAX3421 enabled"