Commit d0f31ccf authored by Fabian's avatar Fabian Committed by Damien George
Browse files

stmhal: Change PLL configuration for STM32F7DISC.

Changes USB clock from 50MHz to 48MHz which improves USB communication.
parent da199e44
...@@ -18,11 +18,11 @@ ...@@ -18,11 +18,11 @@
#define MICROPY_BOARD_EARLY_INIT STM32F7DISC_board_early_init #define MICROPY_BOARD_EARLY_INIT STM32F7DISC_board_early_init
void STM32F7DISC_board_early_init(void); void STM32F7DISC_board_early_init(void);
// HSE is 8MHz // HSE is 25MHz
#define MICROPY_HW_CLK_PLLM (25) #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_PLLP (RCC_PLLP_DIV2)
#define MICROPY_HW_CLK_PLLQ (8) #define MICROPY_HW_CLK_PLLQ (7)
#define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_6 #define MICROPY_HW_FLASH_LATENCY FLASH_LATENCY_6
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment