STM32F769IDiscovery  1.00
uDANTE Audio Networking with STM32F7 DISCO board
Macros | Functions
stm32f7xx_hal_pwr_ex.h File Reference

Header file of PWR HAL Extension module. More...

#include "stm32f7xx_hal_def.h"

Go to the source code of this file.

Macros

#define PWR_WAKEUP_PIN1   PWR_CSR2_EWUP1
 
#define PWR_WAKEUP_PIN2   PWR_CSR2_EWUP2
 
#define PWR_WAKEUP_PIN3   PWR_CSR2_EWUP3
 
#define PWR_WAKEUP_PIN4   PWR_CSR2_EWUP4
 
#define PWR_WAKEUP_PIN5   PWR_CSR2_EWUP5
 
#define PWR_WAKEUP_PIN6   PWR_CSR2_EWUP6
 
#define PWR_WAKEUP_PIN1_HIGH   PWR_CSR2_EWUP1
 
#define PWR_WAKEUP_PIN2_HIGH   PWR_CSR2_EWUP2
 
#define PWR_WAKEUP_PIN3_HIGH   PWR_CSR2_EWUP3
 
#define PWR_WAKEUP_PIN4_HIGH   PWR_CSR2_EWUP4
 
#define PWR_WAKEUP_PIN5_HIGH   PWR_CSR2_EWUP5
 
#define PWR_WAKEUP_PIN6_HIGH   PWR_CSR2_EWUP6
 
#define PWR_WAKEUP_PIN1_LOW   (uint32_t)((PWR_CR2_WUPP1<<6) | PWR_CSR2_EWUP1)
 
#define PWR_WAKEUP_PIN2_LOW   (uint32_t)((PWR_CR2_WUPP2<<6) | PWR_CSR2_EWUP2)
 
#define PWR_WAKEUP_PIN3_LOW   (uint32_t)((PWR_CR2_WUPP3<<6) | PWR_CSR2_EWUP3)
 
#define PWR_WAKEUP_PIN4_LOW   (uint32_t)((PWR_CR2_WUPP4<<6) | PWR_CSR2_EWUP4)
 
#define PWR_WAKEUP_PIN5_LOW   (uint32_t)((PWR_CR2_WUPP5<<6) | PWR_CSR2_EWUP5)
 
#define PWR_WAKEUP_PIN6_LOW   (uint32_t)((PWR_CR2_WUPP6<<6) | PWR_CSR2_EWUP6)
 
#define PWR_MAINREGULATOR_UNDERDRIVE_ON   PWR_CR1_MRUDS
 
#define PWR_LOWPOWERREGULATOR_UNDERDRIVE_ON   ((uint32_t)(PWR_CR1_LPDS | PWR_CR1_LPUDS))
 
#define PWR_FLAG_ODRDY   PWR_CSR1_ODRDY
 
#define PWR_FLAG_ODSWRDY   PWR_CSR1_ODSWRDY
 
#define PWR_FLAG_UDRDY   PWR_CSR1_UDRDY
 
#define PWR_WAKEUP_PIN_FLAG1   PWR_CSR2_WUPF1
 
#define PWR_WAKEUP_PIN_FLAG2   PWR_CSR2_WUPF2
 
#define PWR_WAKEUP_PIN_FLAG3   PWR_CSR2_WUPF3
 
#define PWR_WAKEUP_PIN_FLAG4   PWR_CSR2_WUPF4
 
#define PWR_WAKEUP_PIN_FLAG5   PWR_CSR2_WUPF5
 
#define PWR_WAKEUP_PIN_FLAG6   PWR_CSR2_WUPF6
 
#define __HAL_PWR_OVERDRIVE_ENABLE()   (PWR->CR1 |= (uint32_t)PWR_CR1_ODEN)
 Macros to enable or disable the Over drive mode. More...
 
#define __HAL_PWR_OVERDRIVE_DISABLE()   (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODEN))
 
#define __HAL_PWR_OVERDRIVESWITCHING_ENABLE()   (PWR->CR1 |= (uint32_t)PWR_CR1_ODSWEN)
 Macros to enable or disable the Over drive switching. More...
 
#define __HAL_PWR_OVERDRIVESWITCHING_DISABLE()   (PWR->CR1 &= (uint32_t)(~PWR_CR1_ODSWEN))
 
#define __HAL_PWR_UNDERDRIVE_ENABLE()   (PWR->CR1 |= (uint32_t)PWR_CR1_UDEN)
 Macros to enable or disable the Under drive mode. More...
 
#define __HAL_PWR_UNDERDRIVE_DISABLE()   (PWR->CR1 &= (uint32_t)(~PWR_CR1_UDEN))
 
#define __HAL_PWR_GET_ODRUDR_FLAG(__FLAG__)   ((PWR->CSR1 & (__FLAG__)) == (__FLAG__))
 Check PWR flag is set or not. More...
 
#define __HAL_PWR_CLEAR_ODRUDR_FLAG()   (PWR->CSR1 |= PWR_FLAG_UDRDY)
 Clear the Under-Drive Ready flag. More...
 
#define __HAL_PWR_GET_WAKEUP_FLAG(__WUFLAG__)   (PWR->CSR2 & (__WUFLAG__))
 Check Wake Up flag is set or not. More...
 
#define __HAL_PWR_CLEAR_WAKEUP_FLAG(__WUFLAG__)   (PWR->CR2 |= (__WUFLAG__))
 Clear the WakeUp pins flags. More...
 
#define IS_PWR_REGULATOR_UNDERDRIVE(REGULATOR)
 
#define IS_PWR_WAKEUP_PIN(__PIN__)
 

Functions

uint32_t HAL_PWREx_GetVoltageRange (void)
 
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling)
 
void HAL_PWREx_EnableFlashPowerDown (void)
 
void HAL_PWREx_DisableFlashPowerDown (void)
 
HAL_StatusTypeDef HAL_PWREx_EnableBkUpReg (void)
 
HAL_StatusTypeDef HAL_PWREx_DisableBkUpReg (void)
 
void HAL_PWREx_EnableMainRegulatorLowVoltage (void)
 
void HAL_PWREx_DisableMainRegulatorLowVoltage (void)
 
void HAL_PWREx_EnableLowRegulatorLowVoltage (void)
 
void HAL_PWREx_DisableLowRegulatorLowVoltage (void)
 
HAL_StatusTypeDef HAL_PWREx_EnableOverDrive (void)
 
HAL_StatusTypeDef HAL_PWREx_DisableOverDrive (void)
 
HAL_StatusTypeDef HAL_PWREx_EnterUnderDriveSTOPMode (uint32_t Regulator, uint8_t STOPEntry)
 

Detailed Description

Header file of PWR HAL Extension module.

Author
MCD Application Team
Version
V1.1.0
Date
22-April-2016
Attention

© COPYRIGHT(c) 2016 STMicroelectronics

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of STMicroelectronics nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file stm32f7xx_hal_pwr_ex.h.