HAL PWR How to Use

group PWR_How_To_Use

PWR peripheral overview

This section provides an overview of the supply architecture for the different power domains and of the supply configuration controller.

This file provides firmware functions to manage the following features:

  • Wakeup pin management functions.

  • RTC domain write protection management functions.

  • Low power mode management functions.

  • Voltage monitoring management functions.

  • Item retention management functions.

  • I/O pull management functions.

How to use the PWR HAL module driver

This module provides different sets of APIs that allow:

  1. Manage the wakeup pin: Use a wakeup pin to wake up the system from low power modes.

  2. Manage RTC domain write protection: After a system reset, the RTC domain is protected against possible unwanted write accesses.

  3. Manage low power mode: Use available power modes to reduce power consumption.

  4. Manage monitoring: Use the monitor to manage the power supplies and supply domains.

  5. Manage memory retention: After entering low power mode, the volatile memory (SRAM) content can be retained or not according to application needs.

  6. Manage memory power modes: The flash memory can be configured to enter low power mode when the MCU enters a low power mode.

  7. Manage the I/O retention: The I/O retention feature allows maintaining the state of I/Os during low-power modes. Several APIs are available to retain or release the output of I/Os.

  8. Manage privilege attribute: Use the privilege attribute to set the PWR register access mode (privileged or not).