summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriabdalkader <i.abdalkader@gmail.com>2025-11-24 11:51:28 +0100
committerDamien George <damien@micropython.org>2025-11-27 14:29:30 +1100
commitb087cb41e85641b9aa530dc2001e151750219f0b (patch)
treefc9da0268f0742a50919dbcfb9a63b543a1d97e3
parent6b661ca3f6d877cfca224cc311cb84eba2d2b380 (diff)
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 <i.abdalkader@gmail.com>
-rw-r--r--ports/stm32/mpconfigboard_common.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/mpconfigboard_common.h b/ports/stm32/mpconfigboard_common.h
index eefd5c05c..1ce42055d 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)