Skip to content

Commit ccc7a36

Browse files
authored
Merge pull request #2648 from tannewt/esp32c2_h2
Add esp32c2 and esp32h2 for max3421 support
2 parents 5393f8d + d309874 commit ccc7a36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/common/tusb_mcu.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@
332332
#define TUP_USBIP_DWC2
333333
#define TUP_DCD_ENDPOINT_MAX 6
334334

335-
#elif TU_CHECK_MCU(OPT_MCU_ESP32) && (CFG_TUD_ENABLED || !(defined(CFG_TUH_MAX3421) && CFG_TUH_MAX3421))
335+
#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))
336336
#error "MCUs are only supported with CFG_TUH_MAX3421 enabled"
337337

338338
//--------------------------------------------------------------------+

src/tusb_option.h

+2
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,8 @@
123123
#define OPT_MCU_ESP32 902 ///< Espressif ESP32 (for host max3421e)
124124
#define OPT_MCU_ESP32C3 903 ///< Espressif ESP32-C3
125125
#define OPT_MCU_ESP32C6 904 ///< Espressif ESP32-C6
126+
#define OPT_MCU_ESP32C2 905 ///< Espressif ESP32-C2
127+
#define OPT_MCU_ESP32H2 906 ///< Espressif ESP32-H2
126128
#define TUP_MCU_ESPRESSIF (CFG_TUSB_MCU >= 900 && CFG_TUSB_MCU < 1000) // check if Espressif MCU
127129

128130
// Dialog

0 commit comments

Comments
 (0)