InES Hardware Abstraction Layer
|
Interface of module hal_pwr. More...
#include "hal_common.h"
Go to the source code of this file.
Enumerations | |
enum | hal_pwr_regulator_t { HAL_PWR_REGULATOR_MAIN = 0u, HAL_PWR_REGULATOR_LOWPOWER = 1u } |
Defines the available voltage regulators. | |
enum | hal_pwr_lp_entry_t { HAL_PWR_LP_ENTRY_WFI = 0u, HAL_PWR_LP_ENTRY_WFE = 1u } |
Defines the method used to enter/leave the low power modes. | |
Functions | |
void | hal_pwr_reset (void) __attribute__((deprecated("Please use PWR_RESET()."))) |
Resets the periphery to default values. | |
hal_bool_t | hal_pwr_set_backup_domain (hal_bool_t status) |
Enables/disables the backup domain (RTC, backup sram/registers). More... | |
void | hal_pwr_set_backup_access (hal_bool_t status) |
Enables/Disables write access to backup domain. More... | |
void | hal_pwr_set_wakeup_pin (hal_bool_t status) |
Enables/Disables the wakeup pin. More... | |
void | hal_pwr_set_flash_powerdown (hal_bool_t status) |
Enables/Disables the flash powerdown mode. More... | |
hal_bool_t | hal_pwr_set_overdrive (hal_bool_t status) |
Enables/Disables the voltage regulator overdrive mode. More... | |
hal_bool_t | hal_pwr_set_underdrive (hal_bool_t status) |
Enables/Disables the voltage regulator underdrive mode. More... | |
Interface of module hal_pwr.
The hardware abstraction layer for the power control unit.
void hal_pwr_set_backup_access | ( | hal_bool_t | status | ) |
Enables/Disables write access to backup domain.
status | : Either ENABLE or DISABLE. |
hal_bool_t hal_pwr_set_backup_domain | ( | hal_bool_t | status | ) |
Enables/disables the backup domain (RTC, backup sram/registers).
status | : Either ENABLE or DISABLE. |
void hal_pwr_set_flash_powerdown | ( | hal_bool_t | status | ) |
Enables/Disables the flash powerdown mode.
status | : Either ENABLE or DISABLE. |
hal_bool_t hal_pwr_set_overdrive | ( | hal_bool_t | status | ) |
Enables/Disables the voltage regulator overdrive mode.
status | : Either ENABLE or DISABLE. |
hal_bool_t hal_pwr_set_underdrive | ( | hal_bool_t | status | ) |
Enables/Disables the voltage regulator underdrive mode.
status | : Either ENABLE or DISABLE. |
void hal_pwr_set_wakeup_pin | ( | hal_bool_t | status | ) |
Enables/Disables the wakeup pin.
status | : Either ENABLE or DISABLE. |