libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Go to the source code of this file.
Macros | |
#define | PWR_CR1 MMIO32(POWER_CONTROL_BASE + 0x00) |
Power control register 1 (PWR_CR1) More... | |
#define | PWR_CR2 MMIO32(POWER_CONTROL_BASE + 0x04) |
Power control register 2 (PWR_CR2) More... | |
#define | PWR_CR3 MMIO32(POWER_CONTROL_BASE + 0x08) |
Power control register 3 (PWR_CR3) More... | |
#define | PWR_CR4 MMIO32(POWER_CONTROL_BASE + 0x0c) |
Power control register 4 (PWR_CR4) More... | |
#define | PWR_SR1 MMIO32(POWER_CONTROL_BASE + 0x10) |
Power status register 1 (PWR_SR1) More... | |
#define | PWR_SR2 MMIO32(POWER_CONTROL_BASE + 0x14) |
Power status registery 2 (PWR_SR2) More... | |
#define | PWR_SCR MMIO32(POWER_CONTROL_BASE + 0x18) |
Power status clear register (PWR_SCR) More... | |
#define | PWR_PORT_A MMIO32(POWER_CONTROL_BASE + 0x20) |
#define | PWR_PORT_B MMIO32(POWER_CONTROL_BASE + 0x28) |
#define | PWR_PORT_C MMIO32(POWER_CONTROL_BASE + 0x30) |
#define | PWR_PORT_D MMIO32(POWER_CONTROL_BASE + 0x38) |
#define | PWR_PORT_E MMIO32(POWER_CONTROL_BASE + 0x40) |
#define | PWR_PORT_F MMIO32(POWER_CONTROL_BASE + 0x48) |
#define | PWR_PUCR(pwr_port) MMIO32((pwr_port) + 0x00) |
#define | PWR_PDCR(pwr_port) MMIO32((pwr_port) + 0x04) |
#define | PWR_CR1_LPR (1 << 14) |
#define | PWR_CR1_VOS_SHIFT 9 |
#define | PWR_CR1_VOS_MASK 0x3 |
#define | PWR_CR1_VOS_RANGE_1 1 |
#define | PWR_CR1_VOS_RANGE_2 2 |
#define | PWR_CR1_DBP (1 << 8) |
#define | PWR_CR1_FPD_LPSLP (1 << 5) |
#define | PWR_CR1_FPD_LPRUN (1 << 4) |
#define | PWR_CR1_FPD_STOP (1 << 3) |
#define | PWR_CR1_LPMS_SHIFT 0 |
#define | PWR_CR1_LPMS_MASK 0x07 |
#define | PWR_CR1_LPMS_STOP_0 0 |
#define | PWR_CR1_LPMS_STOP_1 1 |
#define | PWR_CR1_LPMS_STANDBY 3 |
#define | PWR_CR1_LPMS_SHUTDOWN 4 |
#define | PWR_CR2_PVDRT_SHIFT 4 |
#define | PWR_CR2_PVDRT_MASK 0x07 |
#define | PWR_CR2_PVDRT_2V1 0x00 |
#define | PWR_CR2_PVDRT_2V2 0x01 |
#define | PWR_CR2_PVDRT_2V5 0x02 |
#define | PWR_CR2_PVDRT_2V6 0x03 |
#define | PWR_CR2_PVDRT_2V7 0x04 |
#define | PWR_CR2_PVDRT_2V9 0x05 |
#define | PWR_CR2_PVDRT_3V0 0x06 |
#define | PWR_CR2_PVDRT_PVD_IN 0x07 |
#define | PWR_CR2_PVDFT_SHIFT 1 |
#define | PWR_CR2_PVDFT_MASK 0x07 |
#define | PWR_CR2_PVDFT_2V0 0x00 |
#define | PWR_CR2_PVDFT_2V2 0x01 |
#define | PWR_CR2_PVDFT_2V4 0x02 |
#define | PWR_CR2_PVDFT_2V5 0x03 |
#define | PWR_CR2_PVDFT_2V6 0x04 |
#define | PWR_CR2_PVDFT_2V8 0x05 |
#define | PWR_CR2_PVDFT_2V9 0x06 |
#define | PWR_CR2_PVDE (1 << 0) |
#define | PWR_CR3_EIWUL (1 << 15) |
#define | PWR_CR3_APC (1 << 10) |
#define | PWR_CR3_ULPEN (1 << 9) |
#define | PWR_CR3_RRS (1 << 8) |
#define | PWR_CR3_EWUP6 (1 << 5) |
#define | PWR_CR3_EWUP5 (1 << 4) |
#define | PWR_CR3_EWUP4 (1 << 3) |
#define | PWR_CR3_EWUP2 (1 << 1) |
#define | PWR_CR3_EWUP1 (1 << 0) |
#define | PWR_CR4_VBRS (1 << 9) |
#define | PWR_CR4_VBE (1 << 8) |
#define | PWR_CR4_WP6 (1 << 5) |
#define | PWR_CR4_WP5 (1 << 4) |
#define | PWR_CR4_WP4 (1 << 3) |
#define | PWR_CR4_WP2 (1 << 1) |
#define | PWR_CR4_WP1 (1 << 0) |
#define | PWR_SR1_WUFI (1 << 15) |
#define | PWR_SR1_SBF (1 << 8) |
#define | PWR_SR1_WUF6 (1 << 5) |
#define | PWR_SR1_WUF5 (1 << 4) |
#define | PWR_SR1_WUF4 (1 << 3) |
#define | PWR_SR1_WUF2 (1 << 1) |
#define | PWR_SR1_WUF1 (1 << 0) |
#define | PWR_SR2_PVDO (1 << 11) |
#define | PWR_SR2_VOSF (1 << 10) |
#define | PWR_SR2_REGLPF (1 << 9) |
#define | PWR_SR2_REGLPS (1 << 8) |
#define | PWR_SR2_FLASHRDY (1 << 8) |
#define | PWR_SCR_CSBF (1 << 8) |
#define | PWR_SCR_CWUF6 (1 << 5) |
#define | PWR_SCR_CWUF5 (1 << 4) |
#define | PWR_SCR_CWUF4 (1 << 3) |
#define | PWR_SCR_CWUF2 (1 << 1) |
#define | PWR_SCR_CWUF1 (1 << 0) |
Enumerations | |
enum | pwr_vos_scale { PWR_SCALE1 = PWR_CR1_VOS_RANGE_1 , PWR_SCALE2 = PWR_CR1_VOS_RANGE_2 } |
Functions | |
void | pwr_set_vos_scale (enum pwr_vos_scale scale) |
Setup voltage scaling range. More... | |
void | pwr_disable_backup_domain_write_protect (void) |
Disable RTC domain write protect. More... | |
void | pwr_enable_backup_domain_write_protect (void) |
Enable RTC domain write protect. More... | |
void | pwr_set_low_power_mode_selection (uint32_t lpms) |
Select the low power mode used in deep sleep. More... | |
void | pwr_enable_power_voltage_detect (uint32_t pvdr_level, uint32_t pvdf_level) |
Enable Power Voltage Detector. More... | |
void | pwr_disable_power_voltage_detect (void) |
Disable Power Voltage Detector. More... | |