libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
CFGR Configuration Register
Collaboration diagram for CFGR Configuration Register:

Modules

 MCO Pre
 Division factor of microcontroler clock output.
 
 MCO Sel
 Microcontroler clock output selector.
 
 PPRE
 APB Prescaler.
 
 HPRE
 APB Prescaler.
 
 SWS
 System clock switch status.
 
 SW
 System clock switch.
 

Macros

#define RCC_CFGR_MCOPRE_SHIFT   28
 
#define RCC_CFGR_MCOPRE_MASK   0x7
 
#define RCC_CFGR_MCO_SHIFT   24
 
#define RCC_CFGR_MCO_MASK   0xf
 
#define RCC_CFGR_PPRE_MASK   0x7
 
#define RCC_CFGR_PPRE_SHIFT   12
 
#define RCC_CFGR_HPRE_MASK   0xf
 
#define RCC_CFGR_HPRE_SHIFT   8
 
#define RCC_CFGR_SWS_MASK   0x3
 
#define RCC_CFGR_SWS_SHIFT   3
 
#define RCC_CFGR_SW_MASK   0x3
 
#define RCC_CFGR_SW_SHIFT   0
 

Detailed Description

Macro Definition Documentation

◆ RCC_CFGR_HPRE_MASK

#define RCC_CFGR_HPRE_MASK   0xf

Definition at line 162 of file g0/rcc.h.

◆ RCC_CFGR_HPRE_SHIFT

#define RCC_CFGR_HPRE_SHIFT   8

Definition at line 163 of file g0/rcc.h.

◆ RCC_CFGR_MCO_MASK

#define RCC_CFGR_MCO_MASK   0xf

Definition at line 133 of file g0/rcc.h.

◆ RCC_CFGR_MCO_SHIFT

#define RCC_CFGR_MCO_SHIFT   24

Definition at line 132 of file g0/rcc.h.

◆ RCC_CFGR_MCOPRE_MASK

#define RCC_CFGR_MCOPRE_MASK   0x7

Definition at line 117 of file g0/rcc.h.

◆ RCC_CFGR_MCOPRE_SHIFT

#define RCC_CFGR_MCOPRE_SHIFT   28

Definition at line 116 of file g0/rcc.h.

◆ RCC_CFGR_PPRE_MASK

#define RCC_CFGR_PPRE_MASK   0x7

Definition at line 148 of file g0/rcc.h.

◆ RCC_CFGR_PPRE_SHIFT

#define RCC_CFGR_PPRE_SHIFT   12

Definition at line 149 of file g0/rcc.h.

◆ RCC_CFGR_SW_MASK

#define RCC_CFGR_SW_MASK   0x3

Definition at line 192 of file g0/rcc.h.

◆ RCC_CFGR_SW_SHIFT

#define RCC_CFGR_SW_SHIFT   0

Definition at line 193 of file g0/rcc.h.

◆ RCC_CFGR_SWS_MASK

#define RCC_CFGR_SWS_MASK   0x3

Definition at line 179 of file g0/rcc.h.

◆ RCC_CFGR_SWS_SHIFT

#define RCC_CFGR_SWS_SHIFT   3

Definition at line 180 of file g0/rcc.h.