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

Main header for STM32MP1 clock configuration. More...

Detailed Description

Main header for STM32MP1 clock configuration.

Author
Gilles DOFFE gille.nosp@m.s.do.nosp@m.ffe@s.nosp@m.avoi.nosp@m.rfair.nosp@m.elin.nosp@m.ux.co.nosp@m.m

Definition in file cfg_clock_default.h.

+ Include dependency graph for cfg_clock_default.h:

Go to the source code of this file.

MP1 clock PLL settings (208MHz)

#define CONFIG_CLOCK_PLL_M   (2)
 
#define CONFIG_CLOCK_PLL_N   (78)
 
#define CONFIG_CLOCK_PLL_P   (3)
 
#define CONFIG_CLOCK_PLL_Q   (13)
 
#define CONFIG_CLOCK_PLL_R   (3)
 

MP1 clock bus settings (MCU, APB1, APB2 and APB3)

#define CONFIG_CLOCK_MCU_DIV   (1) /* max 208MHz */
 
#define CONFIG_CLOCK_APB1_DIV   (2) /* max 104MHz */
 
#define CONFIG_CLOCK_APB2_DIV   (2) /* max 104MHz */
 
#define CONFIG_CLOCK_APB3_DIV   (2) /* max 104MHz */
 

MP1 clock values

#define CLOCK_PLL_SRC   (CONFIG_CLOCK_HSI)
 
#define CLOCK_PLLQ
 
#define CLOCK_APB1
 
#define CLOCK_APB2
 

Macro Definition Documentation

◆ CLOCK_APB1

#define CLOCK_APB1
Value:
/ CONFIG_CLOCK_APB1_DIV)
#define CLOCK_CORECLOCK
Clock configuration.
Definition periph_cpu.h:31

Definition at line 104 of file cfg_clock_default.h.

◆ CLOCK_APB2

#define CLOCK_APB2
Value:
/ CONFIG_CLOCK_APB2_DIV)

Definition at line 106 of file cfg_clock_default.h.

◆ CLOCK_PLL_SRC

#define CLOCK_PLL_SRC   (CONFIG_CLOCK_HSI)

Definition at line 84 of file cfg_clock_default.h.

◆ CLOCK_PLLQ

#define CLOCK_PLLQ
Value:
(((CLOCK_PLL_SRC / CONFIG_CLOCK_PLL_M) \
* CONFIG_CLOCK_PLL_N) / CONFIG_CLOCK_PLL_Q)

Definition at line 101 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_APB1_DIV

#define CONFIG_CLOCK_APB1_DIV   (2) /* max 104MHz */

Definition at line 63 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_APB2_DIV

#define CONFIG_CLOCK_APB2_DIV   (2) /* max 104MHz */

Definition at line 66 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_APB3_DIV

#define CONFIG_CLOCK_APB3_DIV   (2) /* max 104MHz */

Definition at line 69 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_MCU_DIV

#define CONFIG_CLOCK_MCU_DIV   (1) /* max 208MHz */

Definition at line 60 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_M

#define CONFIG_CLOCK_PLL_M   (2)

Definition at line 33 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_N

#define CONFIG_CLOCK_PLL_N   (78)

Definition at line 41 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_P

#define CONFIG_CLOCK_PLL_P   (3)

Definition at line 45 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_Q

#define CONFIG_CLOCK_PLL_Q   (13)

Definition at line 48 of file cfg_clock_default.h.

◆ CONFIG_CLOCK_PLL_R

#define CONFIG_CLOCK_PLL_R   (3)

Definition at line 51 of file cfg_clock_default.h.