From d0f31ccf33bb620b4e8354dea54ae4fb666b31da Mon Sep 17 00:00:00 2001 From: Fabian Date: Fri, 18 Dec 2015 08:28:36 +0100 Subject: [PATCH] stmhal: Change PLL configuration for STM32F7DISC. Changes USB clock from 50MHz to 48MHz which improves USB communication. --- stmhal/boards/STM32F7DISC/mpconfigboard.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stmhal/boards/STM32F7DISC/mpconfigboard.h b/stmhal/boards/STM32F7DISC/mpconfigboard.h index bc2f3fdc74..0bfb54a627 100644 --- a/stmhal/boards/STM32F7DISC/mpconfigboard.h +++ b/stmhal/boards/STM32F7DISC/mpconfigboard.h @@ -18,11 +18,11 @@ #define MICROPY_BOARD_EARLY_INIT STM32F7DISC_board_early_init void STM32F7DISC_board_early_init(void); -// HSE is 8MHz +// HSE is 25MHz #define MICROPY_HW_CLK_PLLM (25) -#define MICROPY_HW_CLK_PLLN (400) +#define MICROPY_HW_CLK_PLLN (336) #define MICROPY_HW_CLK_PLLP (RCC_PLLP_DIV2) -#define MICROPY_HW_CLK_PLLQ (8) +#define MICROPY_HW_CLK_PLLQ (7) #define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_6