Skip to content

Commit 00eb014

Browse files
committed
Fix ESPs without device support
The newer tusb_option.h assumes that there is a number of device endpoints to check against.
1 parent a7d1888 commit 00eb014

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/common/tusb_mcu.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,11 @@
336336
#define TUP_USBIP_DWC2
337337
#define TUP_DCD_ENDPOINT_MAX 6
338338

339-
#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))
339+
#elif TU_CHECK_MCU(OPT_MCU_ESP32, OPT_MCU_ESP32C2, OPT_MCU_ESP32C3, OPT_MCU_ESP32C6, OPT_MCU_ESP32H2)
340+
#if (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421))
340341
#error "MCUs are only supported with CFG_TUH_MAX3421 enabled"
342+
#endif
343+
#define TUP_DCD_ENDPOINT_MAX 0
341344

342345
//--------------------------------------------------------------------+
343346
// Dialog

0 commit comments

Comments
 (0)