libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
pwr_common_v2.h File Reference
Include dependency graph for pwr_common_v2.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PWR_CR_LPRUN   (1 << 14)
 
#define PWR_CR_VOS_LSB   11
 
#define PWR_CR_VOS_RANGE1   (0x1 << PWR_CR_VOS_LSB)
 
#define PWR_CR_VOS_RANGE2   (0x2 << PWR_CR_VOS_LSB)
 
#define PWR_CR_VOS_RANGE3   (0x3 << PWR_CR_VOS_LSB)
 
#define PWR_CR_VOS_MASK   (0x3 << PWR_CR_VOS_LSB)
 
#define PWR_CR_FWU   (1 << 10)
 
#define PWR_CR_ULP   (1 << 9)
 
#define PWR_CR_LPSDSR   (1 << 0) /* masks common PWR_CR_LPDS */
 
#define PWR_CSR_EWUP2   (1 << 9)
 
#define PWR_CSR_EWUP1   PWR_CSR_EWUP
 
#define PWR_CSR_REGLPF   (1 << 5)
 
#define PWR_CSR_VOSF   (1 << 4)
 
#define PWR_CSR_VREFINTRDYF   (1 << 3)
 

Enumerations

enum  pwr_vos_scale { PWR_SCALE1 , PWR_SCALE2 , PWR_SCALE3 }
 Voltage scales for internal regulator. More...
 

Functions

void pwr_set_vos_scale (enum pwr_vos_scale scale)
 

Macro Definition Documentation

◆ PWR_CR_FWU

#define PWR_CR_FWU   (1 << 10)

Definition at line 51 of file pwr_common_v2.h.

◆ PWR_CR_LPRUN

#define PWR_CR_LPRUN   (1 << 14)

Definition at line 36 of file pwr_common_v2.h.

◆ PWR_CR_LPSDSR

#define PWR_CR_LPSDSR   (1 << 0) /* masks common PWR_CR_LPDS */

Definition at line 57 of file pwr_common_v2.h.

◆ PWR_CR_ULP

#define PWR_CR_ULP   (1 << 9)

Definition at line 54 of file pwr_common_v2.h.

◆ PWR_CR_VOS_LSB

#define PWR_CR_VOS_LSB   11

Definition at line 39 of file pwr_common_v2.h.

◆ PWR_CR_VOS_MASK

#define PWR_CR_VOS_MASK   (0x3 << PWR_CR_VOS_LSB)

Definition at line 48 of file pwr_common_v2.h.

◆ PWR_CSR_EWUP1

#define PWR_CSR_EWUP1   PWR_CSR_EWUP

Definition at line 65 of file pwr_common_v2.h.

◆ PWR_CSR_EWUP2

#define PWR_CSR_EWUP2   (1 << 9)

Definition at line 62 of file pwr_common_v2.h.

◆ PWR_CSR_REGLPF

#define PWR_CSR_REGLPF   (1 << 5)

Definition at line 68 of file pwr_common_v2.h.

◆ PWR_CSR_VOSF

#define PWR_CSR_VOSF   (1 << 4)

Definition at line 71 of file pwr_common_v2.h.

◆ PWR_CSR_VREFINTRDYF

#define PWR_CSR_VREFINTRDYF   (1 << 3)

Definition at line 74 of file pwr_common_v2.h.

Enumeration Type Documentation

◆ pwr_vos_scale

Voltage scales for internal regulator.

Enumerator
PWR_SCALE1 

high performance, highest voltage

PWR_SCALE2 

medium performance, flash operational but slow

PWR_SCALE3 

low performance, no flash erase/program

Definition at line 82 of file pwr_common_v2.h.