cfg_clock_default.h File Reference

Default clock configuration for STM32F0/F1/F3. More...

Detailed Description

+ Include dependency graph for cfg_clock_default.h:

Go to the source code of this file.

F0/F1/F3 clock settings

#define CONFIG_CLOCK_PLL_PREDIV   (1)
 
#define CONFIG_CLOCK_PLL_MUL   (9)
 
#define CLOCK_AHB   CLOCK_CORECLOCK /* HCLK, max: 48MHz (F0), 72MHz (F1/F3)*/
 
#define CONFIG_CLOCK_APB1_DIV   (2)
 
#define CLOCK_APB1   (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* PCLK1, max: 48MHz (F0), 36MHz (F1/F3)*/
 
#define CONFIG_CLOCK_APB2_DIV   (1)
 
#define CLOCK_APB2   (CLOCK_AHB / CONFIG_CLOCK_APB2_DIV) /* PCLK2, max: 72MHz */