Skip to content

Commit b087cb4

Browse files
iabdalkaderdpgeorge
authored andcommitted
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>
1 parent 6b661ca commit b087cb4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ports/stm32/mpconfigboard_common.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,9 @@
542542
#define MICROPY_HW_MAX_UART (10)
543543
#define MICROPY_HW_MAX_LPUART (1)
544544

545+
#define CFG_TUSB_MCU OPT_MCU_STM32N6
546+
#define CFG_TUSB_RHPORT0_MODE (OPT_MODE_DEVICE | OPT_MODE_HIGH_SPEED)
547+
545548
// Configuration for STM32U5 series
546549
#elif defined(STM32U5)
547550

0 commit comments

Comments
 (0)