Merge maintenance-8.x.x fixes into master
[inav.git] / lib / main / STM32H7 / Drivers / STM32H7xx_HAL_Driver / Src / stm32h7xx_ll_pwr.c
blob86b029ada006ceeec9c0014946c5a9600c22aed8
1 /**
2 ******************************************************************************
3 * @file stm32h7xx_ll_pwr.c
4 * @author MCD Application Team
5 * @brief PWR LL module driver.
6 ******************************************************************************
7 * @attention
9 * Copyright (c) 2017 STMicroelectronics.
10 * All rights reserved.
12 * This software is licensed under terms that can be found in the LICENSE file
13 * in the root directory of this software component.
14 * If no LICENSE file comes with this software, it is provided AS-IS.
16 ******************************************************************************
19 #if defined (USE_FULL_LL_DRIVER)
21 /* Includes ------------------------------------------------------------------*/
22 #include "stm32h7xx_ll_pwr.h"
24 /** @addtogroup STM32H7xx_LL_Driver
25 * @{
28 #if defined (PWR)
30 /** @defgroup PWR_LL PWR
31 * @{
34 /* Private types -------------------------------------------------------------*/
35 /* Private variables ---------------------------------------------------------*/
36 /* Private constants ---------------------------------------------------------*/
37 /* Private macros ------------------------------------------------------------*/
38 /* Private function prototypes -----------------------------------------------*/
40 /* Exported functions --------------------------------------------------------*/
41 /** @addtogroup PWR_LL_Exported_Functions
42 * @{
45 /** @addtogroup PWR_LL_EF_Init
46 * @{
49 /**
50 * @brief De-initialize the PWR registers to their default reset values.
51 * @retval An ErrorStatus enumeration value:
52 * - SUCCESS: PWR registers are de-initialized
53 * - ERROR: not applicable
55 ErrorStatus LL_PWR_DeInit(void)
57 #if defined (PWR_WKUPCR_WKUPC3)
58 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | PWR_WKUPCR_WKUPC3 | \
59 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC5 | PWR_WKUPCR_WKUPC6));
60 #else
61 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | \
62 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC6));
63 #endif /* defined (PWR_WKUPCR_WKUPC3) */
64 return SUCCESS;
67 /**
68 * @}
71 /**
72 * @}
75 /**
76 * @}
78 #endif /* defined (PWR) */
79 /**
80 * @}
83 #endif /* defined (USE_FULL_LL_DRIVER) */