libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
3a/pmc.h File Reference
Include dependency graph for 3a/pmc.h:

Go to the source code of this file.

Macros

#define PMC_PCR   MMIO32(PMC_BASE + 0x010C)
 
#define PMC_MCKR_PLLADIV2   (0x01 << 12)
 
#define PMC_PCR_EN   (0x01 << 28)
 
#define PMC_PCR_DIV_SHIFT   16
 
#define PMC_PCR_DIV_MASK   (0x03 << PMC_PCR_DIV_SHIFT)
 
#define PMC_PCR_DIV_PERIPH_DIV_MCK   (0x00 << PMC_PCR_DIV_SHIFT)
 
#define PMC_PCR_DIV_PERIPH_DIV2_MCK   (0x01 << PMC_PCR_DIV_SHIFT)
 
#define PMC_PCR_DIV_PERIPH_DIV4_MCK   (0x02 << PMC_PCR_DIV_SHIFT)
 
#define PMC_PCR_CMD   (0x01 << 12)
 
#define PMC_PCR_PID_SHIFT   0
 
#define PMC_PCR_PID_MASK   (0x3F << PMC_PCR_PID_SHIFT)
 

Macro Definition Documentation

◆ PMC_MCKR_PLLADIV2

#define PMC_MCKR_PLLADIV2   (0x01 << 12)

Definition at line 41 of file 3a/pmc.h.

◆ PMC_PCR

#define PMC_PCR   MMIO32(PMC_BASE + 0x010C)

Definition at line 32 of file 3a/pmc.h.

◆ PMC_PCR_CMD

#define PMC_PCR_CMD   (0x01 << 12)

Definition at line 57 of file 3a/pmc.h.

◆ PMC_PCR_DIV_MASK

#define PMC_PCR_DIV_MASK   (0x03 << PMC_PCR_DIV_SHIFT)

Definition at line 51 of file 3a/pmc.h.

◆ PMC_PCR_DIV_PERIPH_DIV2_MCK

#define PMC_PCR_DIV_PERIPH_DIV2_MCK   (0x01 << PMC_PCR_DIV_SHIFT)

Definition at line 53 of file 3a/pmc.h.

◆ PMC_PCR_DIV_PERIPH_DIV4_MCK

#define PMC_PCR_DIV_PERIPH_DIV4_MCK   (0x02 << PMC_PCR_DIV_SHIFT)

Definition at line 54 of file 3a/pmc.h.

◆ PMC_PCR_DIV_PERIPH_DIV_MCK

#define PMC_PCR_DIV_PERIPH_DIV_MCK   (0x00 << PMC_PCR_DIV_SHIFT)

Definition at line 52 of file 3a/pmc.h.

◆ PMC_PCR_DIV_SHIFT

#define PMC_PCR_DIV_SHIFT   16

Definition at line 50 of file 3a/pmc.h.

◆ PMC_PCR_EN

#define PMC_PCR_EN   (0x01 << 28)

Definition at line 47 of file 3a/pmc.h.

◆ PMC_PCR_PID_MASK

#define PMC_PCR_PID_MASK   (0x3F << PMC_PCR_PID_SHIFT)

Definition at line 61 of file 3a/pmc.h.

◆ PMC_PCR_PID_SHIFT

#define PMC_PCR_PID_SHIFT   0

Definition at line 60 of file 3a/pmc.h.