summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorScott Shawcroft <[email protected]>2024-08-08 12:55:30 -0700
committerScott Shawcroft <[email protected]>2024-08-08 12:55:30 -0700
commit00eb0144cbb11d1c37dcce5cd8ba8afe10e1b6b5 (patch)
tree9ee7a3bcf20e850ec0d84320be5f86a3a6cb2941 /src
parenta7d188832841cc5cbffdf433c07e4897f45c1088 (diff)
Fix ESPs without device support
The newer tusb_option.h assumes that there is a number of device endpoints to check against.
Diffstat (limited to 'src')
-rw-r--r--src/common/tusb_mcu.h5
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