libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
#include <libopencm3/stm32/common/pwr_common_v1.h>
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) |
#define PWR_CR_FWU (1 << 10) |
Definition at line 51 of file pwr_common_v2.h.
#define PWR_CR_LPRUN (1 << 14) |
Definition at line 36 of file pwr_common_v2.h.
#define PWR_CR_LPSDSR (1 << 0) /* masks common PWR_CR_LPDS */ |
Definition at line 57 of file pwr_common_v2.h.
#define PWR_CR_ULP (1 << 9) |
Definition at line 54 of file pwr_common_v2.h.
#define PWR_CR_VOS_LSB 11 |
Definition at line 39 of file pwr_common_v2.h.
#define PWR_CR_VOS_MASK (0x3 << PWR_CR_VOS_LSB) |
Definition at line 48 of file pwr_common_v2.h.
#define PWR_CSR_EWUP1 PWR_CSR_EWUP |
Definition at line 65 of file pwr_common_v2.h.
#define PWR_CSR_EWUP2 (1 << 9) |
Definition at line 62 of file pwr_common_v2.h.
#define PWR_CSR_REGLPF (1 << 5) |
Definition at line 68 of file pwr_common_v2.h.
#define PWR_CSR_VOSF (1 << 4) |
Definition at line 71 of file pwr_common_v2.h.
#define PWR_CSR_VREFINTRDYF (1 << 3) |
Definition at line 74 of file pwr_common_v2.h.
enum 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.