diff options
| author | hathach <[email protected]> | 2024-04-25 20:23:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2024-04-25 20:23:40 +0700 |
| commit | 2e995d7cf4b2971e3ca7167a097b99832c8d61ce (patch) | |
| tree | 7895e6ba2a2e4f34b42af14930dea5be698a9e3b /src/common | |
| parent | fc91e15488523548b6eafa63a3cb6190c1ba72d8 (diff) | |
adding support for esp32 for use with max3421e host
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_mcu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/common/tusb_mcu.h b/src/common/tusb_mcu.h index 0ae2573cd..2c4d7461d 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -329,6 +329,9 @@ #define TUP_USBIP_DWC2 #define TUP_DCD_ENDPOINT_MAX 6 +#elif TU_CHECK_MCU(OPT_MCU_ESP32) && (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421)) + #error "MCUs are only supported with CFG_TUH_MAX3421 enabled" + //--------------------------------------------------------------------+ // Dialog //--------------------------------------------------------------------+ @@ -426,7 +429,7 @@ #define TUP_MCU_MULTIPLE_CORE 0 #endif -#ifndef TUP_DCD_ENDPOINT_MAX +#if CFG_TUD_ENABLED && !defined(TUP_DCD_ENDPOINT_MAX) #warning "TUP_DCD_ENDPOINT_MAX is not defined for this MCU, default to 8" #define TUP_DCD_ENDPOINT_MAX 8 #endif |
