libopencm3 STM32F4xx Power Control
More...
libopencm3 STM32F4xx Power Control
- Version
- 1.0.0
- Author
- © 2011 Stephen Caudle scaud.nosp@m.le@d.nosp@m.oceme.nosp@m..com
- Date
- 4 March 2013
This library supports the power control system for the STM32F4 series of ARM Cortex Microcontrollers by ST Microelectronics.
LGPL License Terms libopencm3 License
- Author
- © 2012 Ken Sarkies ksark.nosp@m.ies@.nosp@m.inter.nosp@m.node.nosp@m..on.n.nosp@m.et
◆ pwr_clear_standby_flag()
void pwr_clear_standby_flag |
( |
void |
| ) |
|
◆ pwr_clear_wakeup_flag()
void pwr_clear_wakeup_flag |
( |
void |
| ) |
|
◆ pwr_disable_backup_domain_write_protect()
void pwr_disable_backup_domain_write_protect |
( |
void |
| ) |
|
Disable Backup Domain Write Protection.
This allows backup domain registers to be changed. These registers are write protected after a reset.
Definition at line 38 of file pwr_common_v1.c.
References PWR_CR, and PWR_CR_DBP.
◆ pwr_disable_power_voltage_detect()
void pwr_disable_power_voltage_detect |
( |
void |
| ) |
|
◆ pwr_disable_wakeup_pin()
void pwr_disable_wakeup_pin |
( |
void |
| ) |
|
Release Wakeup Pin.
The wakeup pin is used for general purpose I/O.
Definition at line 159 of file pwr_common_v1.c.
References PWR_CSR.
◆ pwr_enable_backup_domain_write_protect()
void pwr_enable_backup_domain_write_protect |
( |
void |
| ) |
|
Re-enable Backup Domain Write Protection.
This protects backup domain registers from inadvertent change.
Definition at line 49 of file pwr_common_v1.c.
References PWR_CR.
◆ pwr_enable_power_voltage_detect()
void pwr_enable_power_voltage_detect |
( |
uint32_t |
pvd_level | ) |
|
Enable Power Voltage Detector.
This provides voltage level threshold detection. The result of detection is provided in the power voltage detector output flag (see pwr_voltage_high) or by setting the EXTI16 interrupt (see datasheet for configuration details).
- Parameters
-
Definition at line 64 of file pwr_common_v1.c.
References PWR_CR, and PWR_CR_PVDE.
◆ pwr_enable_wakeup_pin()
void pwr_enable_wakeup_pin |
( |
void |
| ) |
|
◆ pwr_get_standby_flag()
bool pwr_get_standby_flag |
( |
void |
| ) |
|
Get Standby Flag.
The standby flag is set when the processor returns from a standby state. It is cleared by software (see pwr_clear_standby_flag).
- Returns
- boolean: TRUE if the processor was in standby state.
Definition at line 188 of file pwr_common_v1.c.
References PWR_CSR, and PWR_CSR_SBF.
◆ pwr_get_wakeup_flag()
bool pwr_get_wakeup_flag |
( |
void |
| ) |
|
◆ pwr_set_standby_mode()
void pwr_set_standby_mode |
( |
void |
| ) |
|
◆ pwr_set_stop_mode()
void pwr_set_stop_mode |
( |
void |
| ) |
|
◆ pwr_set_vos_scale()
◆ pwr_voltage_high()
bool pwr_voltage_high |
( |
void |
| ) |
|
◆ pwr_voltage_regulator_low_power_in_stop()
void pwr_voltage_regulator_low_power_in_stop |
( |
void |
| ) |
|
◆ pwr_voltage_regulator_on_in_stop()
void pwr_voltage_regulator_on_in_stop |
( |
void |
| ) |
|