diff options
| author | Ha Thach <[email protected]> | 2024-08-09 10:16:22 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-08-09 10:16:22 +0700 |
| commit | 643a26ca8dff6893912a029eeda57219d6cc424b (patch) | |
| tree | 74c9ab090a7dcdb42afeb0e7c112bf9bebc81601 /src | |
| parent | dcd0f39b537f99c14d9a3dd291ab573cddeb47d5 (diff) | |
| parent | 00eb0144cbb11d1c37dcce5cd8ba8afe10e1b6b5 (diff) | |
Merge pull request #2756
Fix ESPs without device support
Diffstat (limited to 'src')
| -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 637281bfc..e3ad0f627 100644 --- a/src/common/tusb_mcu.h +++ b/src/common/tusb_mcu.h @@ -336,8 +336,11 @@ #define TUP_USBIP_DWC2 #define TUP_DCD_ENDPOINT_MAX 6 -#elif TU_CHECK_MCU(OPT_MCU_ESP32, OPT_MCU_ESP32C2, OPT_MCU_ESP32C3, OPT_MCU_ESP32C6, OPT_MCU_ESP32H2) && (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421)) +#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" + #endif + #define TUP_DCD_ENDPOINT_MAX 0 //--------------------------------------------------------------------+ // Dialog |
