STM32L486xx HAL User Manual
Data Structures | Defines | Functions
stm32l4xx_hal_pwr_ex.h File Reference

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

#include "stm32l4xx_hal_def.h"

Go to the source code of this file.

Data Structures

struct  PWR_PVMTypeDef
 PWR PVM configuration structure definition. More...

Defines

#define PWR_WUP_POLARITY_SHIFT   0x05
#define PWR_WAKEUP_PIN1   PWR_CR3_EWUP1
#define PWR_WAKEUP_PIN2   PWR_CR3_EWUP2
#define PWR_WAKEUP_PIN3   PWR_CR3_EWUP3
#define PWR_WAKEUP_PIN4   PWR_CR3_EWUP4
#define PWR_WAKEUP_PIN5   PWR_CR3_EWUP5
#define PWR_WAKEUP_PIN1_HIGH   PWR_CR3_EWUP1
#define PWR_WAKEUP_PIN2_HIGH   PWR_CR3_EWUP2
#define PWR_WAKEUP_PIN3_HIGH   PWR_CR3_EWUP3
#define PWR_WAKEUP_PIN4_HIGH   PWR_CR3_EWUP4
#define PWR_WAKEUP_PIN5_HIGH   PWR_CR3_EWUP5
#define PWR_WAKEUP_PIN1_LOW   (uint32_t)((PWR_CR4_WP1<<PWR_WUP_POLARITY_SHIFT) | PWR_CR3_EWUP1)
#define PWR_WAKEUP_PIN2_LOW   (uint32_t)((PWR_CR4_WP2<<PWR_WUP_POLARITY_SHIFT) | PWR_CR3_EWUP2)
#define PWR_WAKEUP_PIN3_LOW   (uint32_t)((PWR_CR4_WP3<<PWR_WUP_POLARITY_SHIFT) | PWR_CR3_EWUP3)
#define PWR_WAKEUP_PIN4_LOW   (uint32_t)((PWR_CR4_WP4<<PWR_WUP_POLARITY_SHIFT) | PWR_CR3_EWUP4)
#define PWR_WAKEUP_PIN5_LOW   (uint32_t)((PWR_CR4_WP5<<PWR_WUP_POLARITY_SHIFT) | PWR_CR3_EWUP5)
#define PWR_PVM_1   PWR_CR2_PVME1
#define PWR_PVM_2   PWR_CR2_PVME2
#define PWR_PVM_3   PWR_CR2_PVME3
#define PWR_PVM_4   PWR_CR2_PVME4
#define PWR_PVM_MODE_NORMAL   ((uint32_t)0x00000000)
#define PWR_PVM_MODE_IT_RISING   ((uint32_t)0x00010001)
#define PWR_PVM_MODE_IT_FALLING   ((uint32_t)0x00010002)
#define PWR_PVM_MODE_IT_RISING_FALLING   ((uint32_t)0x00010003)
#define PWR_PVM_MODE_EVENT_RISING   ((uint32_t)0x00020001)
#define PWR_PVM_MODE_EVENT_FALLING   ((uint32_t)0x00020002)
#define PWR_PVM_MODE_EVENT_RISING_FALLING   ((uint32_t)0x00020003)
#define PWR_REGULATOR_VOLTAGE_SCALE1   PWR_CR1_VOS_0
#define PWR_REGULATOR_VOLTAGE_SCALE2   PWR_CR1_VOS_1
#define PWR_BATTERY_CHARGING_RESISTOR_5   ((uint32_t)0x00000000)
#define PWR_BATTERY_CHARGING_RESISTOR_1_5   PWR_CR4_VBRS
#define PWR_BATTERY_CHARGING_DISABLE   ((uint32_t)0x00000000)
#define PWR_BATTERY_CHARGING_ENABLE   PWR_CR4_VBE
#define PWR_GPIO_BIT_0   PWR_PUCRA_PA0
#define PWR_GPIO_BIT_1   PWR_PUCRA_PA1
#define PWR_GPIO_BIT_2   PWR_PUCRA_PA2
#define PWR_GPIO_BIT_3   PWR_PUCRA_PA3
#define PWR_GPIO_BIT_4   PWR_PUCRA_PA4
#define PWR_GPIO_BIT_5   PWR_PUCRA_PA5
#define PWR_GPIO_BIT_6   PWR_PUCRA_PA6
#define PWR_GPIO_BIT_7   PWR_PUCRA_PA7
#define PWR_GPIO_BIT_8   PWR_PUCRA_PA8
#define PWR_GPIO_BIT_9   PWR_PUCRA_PA9
#define PWR_GPIO_BIT_10   PWR_PUCRA_PA10
#define PWR_GPIO_BIT_11   PWR_PUCRA_PA11
#define PWR_GPIO_BIT_12   PWR_PUCRA_PA12
#define PWR_GPIO_BIT_13   PWR_PUCRA_PA13
#define PWR_GPIO_BIT_14   PWR_PDCRA_PA14
#define PWR_GPIO_BIT_15   PWR_PUCRA_PA15
#define PWR_GPIO_A   0x00000000
#define PWR_GPIO_B   0x00000001
#define PWR_GPIO_C   0x00000002
#define PWR_GPIO_D   0x00000003
#define PWR_GPIO_E   0x00000004
#define PWR_GPIO_F   0x00000005
#define PWR_GPIO_G   0x00000006
#define PWR_GPIO_H   0x00000007
#define PWR_EXTI_LINE_PVM1   ((uint32_t)0x00000008)
#define PWR_EXTI_LINE_PVM2   ((uint32_t)0x00000010)
#define PWR_EXTI_LINE_PVM3   ((uint32_t)0x00000020)
#define PWR_EXTI_LINE_PVM4   ((uint32_t)0x00000040)
#define PWR_EVENT_LINE_PVM1   ((uint32_t)0x00000008)
#define PWR_EVENT_LINE_PVM2   ((uint32_t)0x00000010)
#define PWR_EVENT_LINE_PVM3   ((uint32_t)0x00000020)
#define PWR_EVENT_LINE_PVM4   ((uint32_t)0x00000040)
#define PWR_FLAG_WUF1   ((uint32_t)0x0020)
#define PWR_FLAG_WUF2   ((uint32_t)0x0021)
#define PWR_FLAG_WUF3   ((uint32_t)0x0022)
#define PWR_FLAG_WUF4   ((uint32_t)0x0023)
#define PWR_FLAG_WUF5   ((uint32_t)0x0024)
#define PWR_FLAG_WU   PWR_SR1_WUF
#define PWR_FLAG_SB   ((uint32_t)0x0028)
#define PWR_FLAG_WUFI   ((uint32_t)0x002F)
#define PWR_FLAG_REGLPS   ((uint32_t)0x0048)
#define PWR_FLAG_REGLPF   ((uint32_t)0x0049)
#define PWR_FLAG_VOSF   ((uint32_t)0x004A)
#define PWR_FLAG_PVDO   ((uint32_t)0x004B)
#define PWR_FLAG_PVMO1   ((uint32_t)0x004C)
#define PWR_FLAG_PVMO2   ((uint32_t)0x004D)
#define PWR_FLAG_PVMO3   ((uint32_t)0x004E)
#define PWR_FLAG_PVMO4   ((uint32_t)0x004F)
#define __HAL_PWR_PVM1_EXTI_ENABLE_IT()   SET_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM1)
 Enable the PVM1 Extended Interrupt Line.
#define __HAL_PWR_PVM1_EXTI_DISABLE_IT()   CLEAR_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM1)
 Disable the PVM1 Extended Interrupt Line.
#define __HAL_PWR_PVM1_EXTI_ENABLE_EVENT()   SET_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM1)
 Enable the PVM1 Event Line.
#define __HAL_PWR_PVM1_EXTI_DISABLE_EVENT()   CLEAR_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM1)
 Disable the PVM1 Event Line.
#define __HAL_PWR_PVM1_EXTI_ENABLE_RISING_EDGE()   SET_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM1)
 Enable the PVM1 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM1_EXTI_DISABLE_RISING_EDGE()   CLEAR_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM1)
 Disable the PVM1 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM1_EXTI_ENABLE_FALLING_EDGE()   SET_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM1)
 Enable the PVM1 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM1_EXTI_DISABLE_FALLING_EDGE()   CLEAR_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM1)
 Disable the PVM1 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM1_EXTI_ENABLE_RISING_FALLING_EDGE()
 PVM1 EXTI line configuration: set rising & falling edge trigger.
#define __HAL_PWR_PVM1_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVM1 Extended Interrupt Rising & Falling Trigger.
#define __HAL_PWR_PVM1_EXTI_GENERATE_SWIT()   SET_BIT(EXTI->SWIER2, PWR_EXTI_LINE_PVM1)
 Generate a Software interrupt on selected EXTI line.
#define __HAL_PWR_PVM1_EXTI_GET_FLAG()   (EXTI->PR2 & PWR_EXTI_LINE_PVM1)
 Check whether the specified PVM1 EXTI interrupt flag is set or not.
#define __HAL_PWR_PVM1_EXTI_CLEAR_FLAG()   WRITE_REG(EXTI->PR2, PWR_EXTI_LINE_PVM1)
 Clear the PVM1 EXTI flag.
#define __HAL_PWR_PVM2_EXTI_ENABLE_IT()   SET_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM2)
 Enable the PVM2 Extended Interrupt Line.
#define __HAL_PWR_PVM2_EXTI_DISABLE_IT()   CLEAR_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM2)
 Disable the PVM2 Extended Interrupt Line.
#define __HAL_PWR_PVM2_EXTI_ENABLE_EVENT()   SET_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM2)
 Enable the PVM2 Event Line.
#define __HAL_PWR_PVM2_EXTI_DISABLE_EVENT()   CLEAR_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM2)
 Disable the PVM2 Event Line.
#define __HAL_PWR_PVM2_EXTI_ENABLE_RISING_EDGE()   SET_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM2)
 Enable the PVM2 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM2_EXTI_DISABLE_RISING_EDGE()   CLEAR_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM2)
 Disable the PVM2 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM2_EXTI_ENABLE_FALLING_EDGE()   SET_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM2)
 Enable the PVM2 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM2_EXTI_DISABLE_FALLING_EDGE()   CLEAR_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM2)
 Disable the PVM2 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM2_EXTI_ENABLE_RISING_FALLING_EDGE()
 PVM2 EXTI line configuration: set rising & falling edge trigger.
#define __HAL_PWR_PVM2_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVM2 Extended Interrupt Rising & Falling Trigger.
#define __HAL_PWR_PVM2_EXTI_GENERATE_SWIT()   SET_BIT(EXTI->SWIER2, PWR_EXTI_LINE_PVM2)
 Generate a Software interrupt on selected EXTI line.
#define __HAL_PWR_PVM2_EXTI_GET_FLAG()   (EXTI->PR2 & PWR_EXTI_LINE_PVM2)
 Check whether the specified PVM2 EXTI interrupt flag is set or not.
#define __HAL_PWR_PVM2_EXTI_CLEAR_FLAG()   WRITE_REG(EXTI->PR2, PWR_EXTI_LINE_PVM2)
 Clear the PVM2 EXTI flag.
#define __HAL_PWR_PVM3_EXTI_ENABLE_IT()   SET_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM3)
 Enable the PVM3 Extended Interrupt Line.
#define __HAL_PWR_PVM3_EXTI_DISABLE_IT()   CLEAR_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM3)
 Disable the PVM3 Extended Interrupt Line.
#define __HAL_PWR_PVM3_EXTI_ENABLE_EVENT()   SET_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM3)
 Enable the PVM3 Event Line.
#define __HAL_PWR_PVM3_EXTI_DISABLE_EVENT()   CLEAR_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM3)
 Disable the PVM3 Event Line.
#define __HAL_PWR_PVM3_EXTI_ENABLE_RISING_EDGE()   SET_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM3)
 Enable the PVM3 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM3_EXTI_DISABLE_RISING_EDGE()   CLEAR_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM3)
 Disable the PVM3 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM3_EXTI_ENABLE_FALLING_EDGE()   SET_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM3)
 Enable the PVM3 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM3_EXTI_DISABLE_FALLING_EDGE()   CLEAR_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM3)
 Disable the PVM3 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM3_EXTI_ENABLE_RISING_FALLING_EDGE()
 PVM3 EXTI line configuration: set rising & falling edge trigger.
#define __HAL_PWR_PVM3_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVM3 Extended Interrupt Rising & Falling Trigger.
#define __HAL_PWR_PVM3_EXTI_GENERATE_SWIT()   SET_BIT(EXTI->SWIER2, PWR_EXTI_LINE_PVM3)
 Generate a Software interrupt on selected EXTI line.
#define __HAL_PWR_PVM3_EXTI_GET_FLAG()   (EXTI->PR2 & PWR_EXTI_LINE_PVM3)
 Check whether the specified PVM3 EXTI interrupt flag is set or not.
#define __HAL_PWR_PVM3_EXTI_CLEAR_FLAG()   WRITE_REG(EXTI->PR2, PWR_EXTI_LINE_PVM3)
 Clear the PVM3 EXTI flag.
#define __HAL_PWR_PVM4_EXTI_ENABLE_IT()   SET_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM4)
 Enable the PVM4 Extended Interrupt Line.
#define __HAL_PWR_PVM4_EXTI_DISABLE_IT()   CLEAR_BIT(EXTI->IMR2, PWR_EXTI_LINE_PVM4)
 Disable the PVM4 Extended Interrupt Line.
#define __HAL_PWR_PVM4_EXTI_ENABLE_EVENT()   SET_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM4)
 Enable the PVM4 Event Line.
#define __HAL_PWR_PVM4_EXTI_DISABLE_EVENT()   CLEAR_BIT(EXTI->EMR2, PWR_EVENT_LINE_PVM4)
 Disable the PVM4 Event Line.
#define __HAL_PWR_PVM4_EXTI_ENABLE_RISING_EDGE()   SET_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM4)
 Enable the PVM4 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM4_EXTI_DISABLE_RISING_EDGE()   CLEAR_BIT(EXTI->RTSR2, PWR_EXTI_LINE_PVM4)
 Disable the PVM4 Extended Interrupt Rising Trigger.
#define __HAL_PWR_PVM4_EXTI_ENABLE_FALLING_EDGE()   SET_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM4)
 Enable the PVM4 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM4_EXTI_DISABLE_FALLING_EDGE()   CLEAR_BIT(EXTI->FTSR2, PWR_EXTI_LINE_PVM4)
 Disable the PVM4 Extended Interrupt Falling Trigger.
#define __HAL_PWR_PVM4_EXTI_ENABLE_RISING_FALLING_EDGE()
 PVM4 EXTI line configuration: set rising & falling edge trigger.
#define __HAL_PWR_PVM4_EXTI_DISABLE_RISING_FALLING_EDGE()
 Disable the PVM4 Extended Interrupt Rising & Falling Trigger.
#define __HAL_PWR_PVM4_EXTI_GENERATE_SWIT()   SET_BIT(EXTI->SWIER2, PWR_EXTI_LINE_PVM4)
 Generate a Software interrupt on selected EXTI line.
#define __HAL_PWR_PVM4_EXTI_GET_FLAG()   (EXTI->PR2 & PWR_EXTI_LINE_PVM4)
 Check whether or not the specified PVM4 EXTI interrupt flag is set.
#define __HAL_PWR_PVM4_EXTI_CLEAR_FLAG()   WRITE_REG(EXTI->PR2, PWR_EXTI_LINE_PVM4)
 Clear the PVM4 EXTI flag.
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
 Configure the main internal regulator output voltage.
#define IS_PWR_WAKEUP_PIN(PIN)
#define IS_PWR_PVM_TYPE(TYPE)
#define IS_PWR_PVM_MODE(MODE)
#define IS_PWR_VOLTAGE_SCALING_RANGE(RANGE)
#define IS_PWR_BATTERY_RESISTOR_SELECT(RESISTOR)
#define IS_PWR_BATTERY_CHARGING(CHARGING)
#define IS_PWR_GPIO_BIT_NUMBER(BIT_NUMBER)   (((BIT_NUMBER) & GPIO_PIN_MASK) != (uint32_t)0x00)
#define IS_PWR_GPIO(GPIO)

Functions

uint32_t HAL_PWREx_GetVoltageRange (void)
 Return Voltage Scaling Range.
HAL_StatusTypeDef HAL_PWREx_ControlVoltageScaling (uint32_t VoltageScaling)
 Configure the main internal regulator output voltage.
void HAL_PWREx_EnableBatteryCharging (uint32_t ResistorSelection)
 Enable battery charging.
void HAL_PWREx_DisableBatteryCharging (void)
 Disable battery charging.
void HAL_PWREx_EnableVddUSB (void)
 Enable VDDUSB supply.
void HAL_PWREx_DisableVddUSB (void)
 Disable VDDUSB supply.
void HAL_PWREx_EnableVddIO2 (void)
 Enable VDDIO2 supply.
void HAL_PWREx_DisableVddIO2 (void)
 Disable VDDIO2 supply.
void HAL_PWREx_EnableInternalWakeUpLine (void)
 Enable Internal Wake-up Line.
void HAL_PWREx_DisableInternalWakeUpLine (void)
 Disable Internal Wake-up Line.
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-up state in Standby and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullUp (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-up state in Standby mode and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_EnableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Enable GPIO pull-down state in Standby and Shutdown modes.
HAL_StatusTypeDef HAL_PWREx_DisableGPIOPullDown (uint32_t GPIO, uint32_t GPIONumber)
 Disable GPIO pull-down state in Standby and Shutdown modes.
void HAL_PWREx_EnablePullUpPullDownConfig (void)
 Enable pull-up and pull-down configuration.
void HAL_PWREx_DisablePullUpPullDownConfig (void)
 Disable pull-up and pull-down configuration.
void HAL_PWREx_EnableSRAM2ContentRetention (void)
 Enable SRAM2 content retention in Standby mode.
void HAL_PWREx_DisableSRAM2ContentRetention (void)
 Disable SRAM2 content retention in Standby mode.
void HAL_PWREx_EnablePVM1 (void)
 Enable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
void HAL_PWREx_DisablePVM1 (void)
 Disable the Power Voltage Monitoring 1: VDDUSB versus 1.2V.
void HAL_PWREx_EnablePVM2 (void)
 Enable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V.
void HAL_PWREx_DisablePVM2 (void)
 Disable the Power Voltage Monitoring 2: VDDIO2 versus 0.9V.
void HAL_PWREx_EnablePVM3 (void)
 Enable the Power Voltage Monitoring 3: VDDA versus 1.62V.
void HAL_PWREx_DisablePVM3 (void)
 Disable the Power Voltage Monitoring 3: VDDA versus 1.62V.
void HAL_PWREx_EnablePVM4 (void)
 Enable the Power Voltage Monitoring 4: VDDA versus 2.2V.
void HAL_PWREx_DisablePVM4 (void)
 Disable the Power Voltage Monitoring 4: VDDA versus 2.2V.
HAL_StatusTypeDef HAL_PWREx_ConfigPVM (PWR_PVMTypeDef *sConfigPVM)
 Configure the Peripheral Voltage Monitoring (PVM).
void HAL_PWREx_EnableLowPowerRunMode (void)
 Enter Low-power Run mode.
HAL_StatusTypeDef HAL_PWREx_DisableLowPowerRunMode (void)
 Exit Low-power Run mode.
void HAL_PWREx_EnterSTOP0Mode (uint8_t STOPEntry)
 Enter Stop 0 mode.
void HAL_PWREx_EnterSTOP1Mode (uint8_t STOPEntry)
 Enter Stop 1 mode.
void HAL_PWREx_EnterSTOP2Mode (uint8_t STOPEntry)
 Enter Stop 2 mode.
void HAL_PWREx_EnterSHUTDOWNMode (void)
 Enter Shutdown mode.
void HAL_PWREx_PVD_PVM_IRQHandler (void)
 This function handles the PWR PVD/PVMx interrupt request.
__weak void HAL_PWREx_PVM1Callback (void)
 PWR PVM1 interrupt callback.
__weak void HAL_PWREx_PVM2Callback (void)
 PWR PVM2 interrupt callback.
__weak void HAL_PWREx_PVM3Callback (void)
 PWR PVM3 interrupt callback.
__weak void HAL_PWREx_PVM4Callback (void)
 PWR PVM4 interrupt callback.

Detailed Description

Header file of PWR HAL Extended module.

Author:
MCD Application Team
Attention:

© COPYRIGHT(c) 2017 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 stm32l4xx_hal_pwr_ex.h.