stm32/boards/NUCLEO_F401RE: Change flash latency for NUCLEO-F401RE.

For NUCLEO-F401RE, FLASH_LATENCY_2 can be specified for flash latency
because it runs at 84MHz.

Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
This commit is contained in:
Yuuki NAGAO
2025-09-14 20:11:49 +09:00
committed by Damien George
parent be1a1eb7ac
commit 06a90e0b4b

View File

@@ -21,6 +21,9 @@
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV4)
#define MICROPY_HW_CLK_PLLQ (7)
// 84 MHz needs 2 wait states
#define MICROPY_HW_FLASH_LATENCY (FLASH_LATENCY_2)
// UART config
#define MICROPY_HW_UART2_TX (pin_A2)
#define MICROPY_HW_UART2_RX (pin_A3)