Configure STM32G0/G4 clock. More...
Configure STM32G0/G4 clock.
CORECLOCK cannot exceeds 64MHz core clock. LSE is 32768Hz. Default configuration use PLL clock as system clock. PLL input clock is HSI by default.
Definition in file cfg_clock_default.h.
 Include dependency graph for cfg_clock_default.h:
 Include dependency graph for cfg_clock_default.h:Go to the source code of this file.
| G0/G4 clock settings | |
| #define | CLOCK_PLL_SRC (CONFIG_CLOCK_HSI) | 
| #define | CONFIG_CLOCK_PLL_M (4) | 
| #define | CONFIG_CLOCK_PLL_N (85) | 
| #define | CONFIG_CLOCK_PLL_R (2) | 
| #define | CLOCK_AHB CLOCK_CORECLOCK /* max: 64MHz (G0), 170MHZ (G4) */ | 
| #define | CONFIG_CLOCK_APB1_DIV (1) | 
| #define | CLOCK_APB1 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB1_DIV) /* max: 64MHz (G0), 170MHZ (G4) */ | 
| #define CLOCK_AHB CLOCK_CORECLOCK /* max: 64MHz (G0), 170MHZ (G4) */ | 
Definition at line 101 of file cfg_clock_default.h.
| #define CLOCK_APB1 (CLOCK_CORECLOCK / CONFIG_CLOCK_APB1_DIV) /* max: 64MHz (G0), 170MHZ (G4) */ | 
Definition at line 106 of file cfg_clock_default.h.
| #define CLOCK_PLL_SRC (CONFIG_CLOCK_HSI) | 
Definition at line 48 of file cfg_clock_default.h.
| #define CONFIG_CLOCK_APB1_DIV (1) | 
Definition at line 104 of file cfg_clock_default.h.
| #define CONFIG_CLOCK_PLL_M (4) | 
Definition at line 56 of file cfg_clock_default.h.
| #define CONFIG_CLOCK_PLL_N (85) | 
Definition at line 63 of file cfg_clock_default.h.
| #define CONFIG_CLOCK_PLL_R (2) | 
Definition at line 70 of file cfg_clock_default.h.