Skip to content

Commit d0f31cc

Browse files
ruffy91dpgeorge
authored andcommitted
stmhal: Change PLL configuration for STM32F7DISC.
Changes USB clock from 50MHz to 48MHz which improves USB communication.
1 parent da199e4 commit d0f31cc

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

stmhal/boards/STM32F7DISC/mpconfigboard.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
#define MICROPY_BOARD_EARLY_INIT STM32F7DISC_board_early_init
1919
void STM32F7DISC_board_early_init(void);
2020

21-
// HSE is 8MHz
21+
// HSE is 25MHz
2222
#define MICROPY_HW_CLK_PLLM (25)
23-
#define MICROPY_HW_CLK_PLLN (400)
23+
#define MICROPY_HW_CLK_PLLN (336)
2424
#define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2)
25-
#define MICROPY_HW_CLK_PLLQ (8)
25+
#define MICROPY_HW_CLK_PLLQ (7)
2626

2727
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_6
2828

0 commit comments

Comments
 (0)