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_CR MMIO32(POWER_CONTROL_BASE + 0x00) |
Power control register (PWR_CR) More... | |
#define | PWR_CSR MMIO32(POWER_CONTROL_BASE + 0x04) |
Power control/status register (PWR_CSR) More... | |
#define | PWR_CR_DBP (1 << 8) |
DBP: Disable backup domain write protection. More... | |
#define | PWR_CR_PLS_LSB 5 |
#define | PWR_CR_PLS_2V2 (0x0 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V3 (0x1 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V4 (0x2 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V5 (0x3 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V6 (0x4 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V7 (0x5 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V8 (0x6 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_2V9 (0x7 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PLS_MASK (0x7 << PWR_CR_PLS_LSB) |
#define | PWR_CR_PVDE (1 << 4) |
PVDE: Power voltage detector enable. More... | |
#define | PWR_CR_CSBF (1 << 3) |
CSBF: Clear standby flag. More... | |
#define | PWR_CR_CWUF (1 << 2) |
CWUF: Clear wakeup flag. More... | |
#define | PWR_CR_PDDS (1 << 1) |
PDDS: Power down deepsleep. More... | |
#define | PWR_CR_LPDS (1 << 0) |
LPDS: Low-power deepsleep. More... | |
#define | PWR_CSR_EWUP (1 << 8) |
EWUP: Enable WKUP pin. More... | |
#define | PWR_CSR_PVDO (1 << 2) |
PVDO: PVD output. More... | |
#define | PWR_CSR_SBF (1 << 1) |
SBF: Standby flag. More... | |
#define | PWR_CSR_WUF (1 << 0) |
WUF: Wakeup flag. More... | |
Functions | |
void | pwr_disable_backup_domain_write_protect (void) |
Disable Backup Domain Write Protection. More... | |
void | pwr_enable_backup_domain_write_protect (void) |
Re-enable Backup Domain Write Protection. More... | |
void | pwr_enable_power_voltage_detect (uint32_t pvd_level) |
Enable Power Voltage Detector. More... | |
void | pwr_disable_power_voltage_detect (void) |
Disable Power Voltage Detector. More... | |
void | pwr_clear_standby_flag (void) |
Clear the Standby Flag. More... | |
void | pwr_clear_wakeup_flag (void) |
Clear the Wakeup Flag. More... | |
void | pwr_set_standby_mode (void) |
Set Standby Mode in Deep Sleep. More... | |
void | pwr_set_stop_mode (void) |
Set Stop Mode in Deep Sleep. More... | |
void | pwr_voltage_regulator_on_in_stop (void) |
Voltage Regulator On in Stop Mode. More... | |
void | pwr_voltage_regulator_low_power_in_stop (void) |
Voltage Regulator Low Power in Stop Mode. More... | |
void | pwr_enable_wakeup_pin (void) |
Enable Wakeup Pin. More... | |
void | pwr_disable_wakeup_pin (void) |
Release Wakeup Pin. More... | |
bool | pwr_voltage_high (void) |
Get Voltage Detector Output. More... | |
bool | pwr_get_standby_flag (void) |
Get Standby Flag. More... | |
bool | pwr_get_wakeup_flag (void) |
Get Wakeup Flag. More... | |