1 /**
2   ******************************************************************************
3   * @file    stm32f1xx_ll_pwr.c
4   * @author  MCD Application Team
5   * @brief   PWR LL module driver.
6   ******************************************************************************
7   * @attention
8   *
9   * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
10   * All rights reserved.</center></h2>
11   *
12   * This software component is licensed by ST under BSD 3-Clause license,
13   * the "License"; You may not use this file except in compliance with the
14   * License. You may obtain a copy of the License at:
15   *                        opensource.org/licenses/BSD-3-Clause
16   *
17   ******************************************************************************
18   */
19 
20 #if defined(USE_FULL_LL_DRIVER)
21 
22 /* Includes ------------------------------------------------------------------*/
23 #include "stm32f1xx_ll_pwr.h"
24 #include "stm32f1xx_ll_bus.h"
25 
26 /** @addtogroup STM32F1xx_LL_Driver
27   * @{
28   */
29 
30 #if defined(PWR)
31 
32 /** @defgroup PWR_LL PWR
33   * @{
34   */
35 
36 /* Private types -------------------------------------------------------------*/
37 /* Private variables ---------------------------------------------------------*/
38 /* Private constants ---------------------------------------------------------*/
39 /* Private macros ------------------------------------------------------------*/
40 /* Private function prototypes -----------------------------------------------*/
41 
42 /* Exported functions --------------------------------------------------------*/
43 /** @addtogroup PWR_LL_Exported_Functions
44   * @{
45   */
46 
47 /** @addtogroup PWR_LL_EF_Init
48   * @{
49   */
50 
51 /**
52   * @brief  De-initialize the PWR registers to their default reset values.
53   * @retval An ErrorStatus enumeration value:
54   *          - SUCCESS: PWR registers are de-initialized
55   *          - ERROR: not applicable
56   */
LL_PWR_DeInit(void)57 ErrorStatus LL_PWR_DeInit(void)
58 {
59   /* Force reset of PWR clock */
60   LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
61 
62   /* Release reset of PWR clock */
63   LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
64 
65   return SUCCESS;
66 }
67 
68 /**
69   * @}
70   */
71 
72 /**
73   * @}
74   */
75 
76 /**
77   * @}
78   */
79 #endif /* defined(PWR) */
80 /**
81   * @}
82   */
83 
84 #endif /* USE_FULL_LL_DRIVER */
85 
86 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
87