1 /**
2 ******************************************************************************
3 * @file stm32l5xx_ll_pwr.c
4 * @author MCD Application Team
5 * @brief PWR LL module driver.
6 ******************************************************************************
7 * @attention
8 *
9 * Copyright (c) 2019 STMicroelectronics.
10 * All rights reserved.
11 *
12 * This software is licensed under terms that can be found in the LICENSE file in
13 * the root directory of this software component.
14 * If no LICENSE file comes with this software, it is provided AS-IS.
15 ******************************************************************************
16 */
17 #if defined(USE_FULL_LL_DRIVER)
18
19 /* Includes ------------------------------------------------------------------*/
20 #include "stm32l5xx_ll_pwr.h"
21 #include "stm32l5xx_ll_bus.h"
22
23 /** @addtogroup STM32L5xx_LL_Driver
24 * @{
25 */
26
27 #if defined(PWR)
28
29 /** @defgroup PWR_LL PWR
30 * @{
31 */
32
33 /* Private types -------------------------------------------------------------*/
34 /* Private variables ---------------------------------------------------------*/
35 /* Private constants ---------------------------------------------------------*/
36 /* Private macros ------------------------------------------------------------*/
37 /* Private function prototypes -----------------------------------------------*/
38
39 /* Exported functions --------------------------------------------------------*/
40 /** @addtogroup PWR_LL_Exported_Functions
41 * @{
42 */
43
44 /** @addtogroup PWR_LL_EF_Init
45 * @{
46 */
47
48 /**
49 * @brief De-initialize the PWR registers to their default reset values.
50 * @retval An ErrorStatus enumeration value:
51 * - SUCCESS: PWR registers are de-initialized
52 * - ERROR: not applicable
53 */
LL_PWR_DeInit(void)54 ErrorStatus LL_PWR_DeInit(void)
55 {
56 /* Force reset of PWR clock */
57 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
58
59 /* Release reset of PWR clock */
60 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
61
62 return SUCCESS;
63 }
64
65 /**
66 * @}
67 */
68
69 /**
70 * @}
71 */
72
73 /**
74 * @}
75 */
76 #endif /* defined(PWR) */
77 /**
78 * @}
79 */
80
81 #endif /* USE_FULL_LL_DRIVER */
82