Loading...
Searching...
No Matches
cfg_clock_default.h File Reference

Default STM32L4 clock configuration. More...

Detailed Description

+ Include dependency graph for cfg_clock_default.h:

Go to the source code of this file.

L4/L5/WB clock system configuration

#define CONFIG_CLOCK_PLL_SRC_MSI   1 /* Use MSI as input clock by default */
 
#define CONFIG_CLOCK_PLL_SRC_HSE   0
 
#define CONFIG_CLOCK_PLL_SRC_HSI   0
 
#define CLOCK_PLL_SRC   (CONFIG_CLOCK_HSI)
 
#define CONFIG_CLOCK_PLL_M   (2) /* HSI at 16MHz */
 
#define CONFIG_CLOCK_PLL_N   (20)
 
#define CONFIG_CLOCK_PLL_Q   (2)
 
#define CONFIG_CLOCK_PLL_R   (2)
 
#define CLOCK_AHB   CLOCK_CORECLOCK /* HCLK, max: 48/64/80/120MHz */
 
#define CONFIG_CLOCK_APB1_DIV   (4)
 
#define CLOCK_APB1   (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* PCLK1, max: 48/64/80/120MHz */
 
#define CONFIG_CLOCK_APB2_DIV   (2)
 
#define CLOCK_APB2   (CLOCK_AHB / CONFIG_CLOCK_APB2_DIV) /* PCLK1, max: 48/64/80/120MHz */
 

Macro Definition Documentation

◆ CLOCK_AHB

#define CLOCK_AHB   CLOCK_CORECLOCK /* HCLK, max: 48/64/80/120MHz */

Definition at line 172 of file cfg_clock_default.h.

◆ CLOCK_APB1

#define CLOCK_APB1   (CLOCK_AHB / CONFIG_CLOCK_APB1_DIV) /* PCLK1, max: 48/64/80/120MHz */

Definition at line 177 of file cfg_clock_default.h.

◆ CLOCK_APB2

#define CLOCK_APB2   (CLOCK_AHB / CONFIG_CLOCK_APB2_DIV) /* PCLK1, max: 48/64/80/120MHz */

Definition at line 181 of file cfg_clock_default.h.

◆ CLOCK_PLL_SRC

#define CLOCK_PLL_SRC   (CONFIG_CLOCK_HSI)

Definition at line 65 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_APB1_DIV

#define CONFIG_CLOCK_APB1_DIV   (4)

Definition at line 175 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_APB2_DIV

#define CONFIG_CLOCK_APB2_DIV   (2)

Definition at line 179 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_M

#define CONFIG_CLOCK_PLL_M   (2) /* HSI at 16MHz */

Definition at line 75 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_N

#define CONFIG_CLOCK_PLL_N   (20)

Definition at line 100 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_Q

#define CONFIG_CLOCK_PLL_Q   (2)

Definition at line 105 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_R

#define CONFIG_CLOCK_PLL_R   (2)

Definition at line 108 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_SRC_HSE

#define CONFIG_CLOCK_PLL_SRC_HSE   0

Definition at line 54 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_SRC_HSI

#define CONFIG_CLOCK_PLL_SRC_HSI   0

Definition at line 58 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_SRC_MSI

#define CONFIG_CLOCK_PLL_SRC_MSI   1 /* Use MSI as input clock by default */

Definition at line 46 of file cfg_clock_default.h.