File tree 1 file changed +2
-10
lines changed
ports/stm32/boards/NUCLEO_F767ZI
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 16
16
#define MICROPY_BOARD_EARLY_INIT NUCLEO_F767ZI_board_early_init
17
17
void NUCLEO_F767ZI_board_early_init (void );
18
18
19
- // HSE is 25MHz
20
- // VCOClock = HSE * PLLN / PLLM = 25 MHz * 432 / 25 = 432 MHz
21
- // SYSCLK = VCOClock / PLLP = 432 MHz / 2 = 216 MHz
22
- // USB/SDMMC/RNG Clock = VCOClock / PLLQ = 432 MHz / 9 = 48 MHz
19
+ // HSE is 8MHz
23
20
#define MICROPY_HW_CLK_PLLM (4)
24
21
#define MICROPY_HW_CLK_PLLN (216)
25
22
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
26
23
#define MICROPY_HW_CLK_PLLQ (9)
27
-
28
- // From the reference manual, for 2.7V to 3.6V
29
- // 151-180 MHz => 5 wait states
30
- // 181-210 MHz => 6 wait states
31
- // 211-216 MHz => 7 wait states
32
- #define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_7 // 210-216 MHz needs 7 wait states
24
+ #define MICROPY_HW_FLASH_LATENCY (FLASH_LATENCY_7) // 210-216 MHz needs 7 wait states
33
25
34
26
// UART config
35
27
#define MICROPY_HW_UART2_TX (pin_D5)
You can’t perform that action at this time.
0 commit comments