10000 stm32/boards/NUCLEO_F767ZI: Fix up comments about HCLK computation. · micropython/micropython@75a3544 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75a3544

Browse files
committed
stm32/boards/NUCLEO_F767ZI: Fix up comments about HCLK computation.
1 parent 9521399 commit 75a3544

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ports/stm32/boards/NUCLEO_F767ZI/mpconfigboard.h

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,12 @@
1616
#define MICROPY_BOARD_EARLY_INIT NUCLEO_F767ZI_board_early_init
1717
void NUCLEO_F767ZI_board_early_init(void);
1818

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
2320
#define MICROPY_HW_CLK_PLLM (4)
2421
#define MICROPY_HW_CLK_PLLN (216)
2522
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
2623
#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
3325

3426
// UART config
3527
#define MICROPY_HW_UART2_TX (pin_D5)

0 commit comments

Comments
 (0)
0