HAL PWR Overview ¶
Introducing PWR ¶
- group PWR_Introduction
-
The PWR peripheral in STM32 manages power modes (sleep, stop, standby) and RTC domain access.
It reduces power consumption, supports multiple wakeup sources, and is essential for battery-powered applications.
Control is achieved through PWR registers. Use HAL functions for simplified configuration.
Module and files ¶
The following diagram illustrates the PWR module and its associated files.
Component diagram ¶
The following diagram illustrates the software components involved in the PWR module. It shows the interactions between the user application, HAL drivers, low-level drivers, and the hardware components.
Configuration table ¶
The following table lists the configuration defines for the HAL PWR module, specifying their locations, default values, and descriptions:
- group PWR_Configuration_Table
-
¶
Configuration inside the PWR driver ¶
Config defines
Description
Default value
Note
PRODUCT
from IDE
NA
The selected device
USE_HAL_PWR_MODULE
from hal_conf.h
1U
When set, HAL PWR module is enabled.
USE_ASSERT_DBG_PARAM
from IDE
None
When defined, enable parameter assertions.
USE_HAL_CHECK_PARAM
from hal_conf.h
0U
When set, parameters are checked at runtime.