blob: 0c6f61e3dbf2b5e52576168f41013125e2e0651f [file] [log] [blame]
Eyaf2aeb9e2020-01-29 15:40:00 +01001/**
2 ******************************************************************************
3 * @file stm32f4xx_ll_pwr.c
4 * @author MCD Application Team
5 * @brief PWR LL module driver.
6 ******************************************************************************
7 * @attention
8 *
rihab kouki7543a242022-03-09 10:38:04 +01009 * Copyright (c) 2017 STMicroelectronics.
10 * All rights reserved.
Eyaf2aeb9e2020-01-29 15:40:00 +010011 *
rihab kouki7543a242022-03-09 10:38:04 +010012 * 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.
Eyaf2aeb9e2020-01-29 15:40:00 +010015 ******************************************************************************
16 */
17#if defined(USE_FULL_LL_DRIVER)
18
19/* Includes ------------------------------------------------------------------*/
20#include "stm32f4xx_ll_pwr.h"
21#include "stm32f4xx_ll_bus.h"
22
23/** @addtogroup STM32F4xx_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 */
54ErrorStatus 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 */