STM32F4xx HAL Documentation
Hardware Abstraction Layer for STM32F4 familiy
Loading...
Searching...
No Matches
stm32f4xx_hal_pwr.c File Reference

PWR HAL module driver. This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral: More...

#include "stm32f4xx_hal.h"
Include dependency graph for stm32f4xx_hal_pwr.c:

Go to the source code of this file.

Macros

#define PVD_MODE_IT   0x00010000U
 
#define PVD_MODE_EVT   0x00020000U
 
#define PVD_RISING_EDGE   0x00000001U
 
#define PVD_FALLING_EDGE   0x00000002U
 

Functions

void HAL_PWR_DeInit (void)
 Deinitializes the HAL PWR peripheral registers to their default reset values.
 
void HAL_PWR_EnableBkUpAccess (void)
 Enables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
 
void HAL_PWR_DisableBkUpAccess (void)
 Disables access to the backup domain (RTC registers, RTC backup data registers and backup SRAM).
 
void HAL_PWR_ConfigPVD (PWR_PVDTypeDef *sConfigPVD)
 Configures the voltage threshold detected by the Power Voltage Detector(PVD).
 
void HAL_PWR_EnablePVD (void)
 Enables the Power Voltage Detector(PVD).
 
void HAL_PWR_DisablePVD (void)
 Disables the Power Voltage Detector(PVD).
 
void HAL_PWR_EnableWakeUpPin (uint32_t WakeUpPinx)
 Enables the Wake-up PINx functionality.
 
void HAL_PWR_DisableWakeUpPin (uint32_t WakeUpPinx)
 Disables the Wake-up PINx functionality.
 
void HAL_PWR_EnterSLEEPMode (uint32_t Regulator, uint8_t SLEEPEntry)
 Enters Sleep mode.
 
void HAL_PWR_EnterSTOPMode (uint32_t Regulator, uint8_t STOPEntry)
 Enters Stop mode.
 
void HAL_PWR_EnterSTANDBYMode (void)
 Enters Standby mode.
 
void HAL_PWR_PVD_IRQHandler (void)
 This function handles the PWR PVD interrupt request.
 
void HAL_PWR_PVDCallback (void)
 PWR PVD interrupt callback.
 
void HAL_PWR_EnableSleepOnExit (void)
 Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.
 
void HAL_PWR_DisableSleepOnExit (void)
 Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.
 
void HAL_PWR_EnableSEVOnPend (void)
 Enables CORTEX M4 SEVONPEND bit.
 
void HAL_PWR_DisableSEVOnPend (void)
 Disables CORTEX M4 SEVONPEND bit.
 

Detailed Description

PWR HAL module driver. This file provides firmware functions to manage the following functionalities of the Power Controller (PWR) peripheral:

Author
MCD Application Team
  • Initialization and de-initialization functions
  • Peripheral Control functions
Attention

Copyright (c) 2017 STMicroelectronics. All rights reserved.

This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.

Definition in file stm32f4xx_hal_pwr.c.