From b087cb41e85641b9aa530dc2001e151750219f0b Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Mon, 24 Nov 2025 11:51:28 +0100 Subject: [PATCH] stm32/mpconfigboard_common: Define TinyUSB MCU type for N6. Allows using TinyUSB stack on N6. Note there's still an issue with TinyUSB on the N6: `pyb_usbd_init()` can't be called multiple times (on soft-reboot). Signed-off-by: iabdalkader --- ports/stm32/mpconfigboard_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ports/stm32/mpconfigboard_common.h b/ports/stm32/mpconfigboard_common.h index eefd5c05c1..1ce42055d8 100644 --- a/ports/stm32/mpconfigboard_common.h +++ b/ports/stm32/mpconfigboard_common.h @@ -542,6 +542,9 @@ #define MICROPY_HW_MAX_UART (10) #define MICROPY_HW_MAX_LPUART (1) +#define CFG_TUSB_MCU OPT_MCU_STM32N6 +#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED) + // Configuration for STM32U5 series #elif defined(STM32U5)