STM32F103xB HAL User Manual
stm32f1xx_ll_pwr.c
Go to the documentation of this file.
00001 /**
00002   ******************************************************************************
00003   * @file    stm32f1xx_ll_pwr.c
00004   * @author  MCD Application Team
00005   * @brief   PWR LL module driver.
00006   ******************************************************************************
00007   * @attention
00008   *
00009   * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
00010   * All rights reserved.</center></h2>
00011   *
00012   * This software component is licensed by ST under BSD 3-Clause license,
00013   * the "License"; You may not use this file except in compliance with the
00014   * License. You may obtain a copy of the License at:
00015   *                        opensource.org/licenses/BSD-3-Clause
00016   *
00017   ******************************************************************************
00018   */
00019 
00020 #if defined(USE_FULL_LL_DRIVER)
00021 
00022 /* Includes ------------------------------------------------------------------*/
00023 #include "stm32f1xx_ll_pwr.h"
00024 #include "stm32f1xx_ll_bus.h"
00025 
00026 /** @addtogroup STM32F1xx_LL_Driver
00027   * @{
00028   */
00029 
00030 #if defined(PWR)
00031 
00032 /** @defgroup PWR_LL PWR
00033   * @{
00034   */
00035 
00036 /* Private types -------------------------------------------------------------*/
00037 /* Private variables ---------------------------------------------------------*/
00038 /* Private constants ---------------------------------------------------------*/
00039 /* Private macros ------------------------------------------------------------*/
00040 /* Private function prototypes -----------------------------------------------*/
00041 
00042 /* Exported functions --------------------------------------------------------*/
00043 /** @addtogroup PWR_LL_Exported_Functions
00044   * @{
00045   */
00046 
00047 /** @addtogroup PWR_LL_EF_Init
00048   * @{
00049   */
00050 
00051 /**
00052   * @brief  De-initialize the PWR registers to their default reset values.
00053   * @retval An ErrorStatus enumeration value:
00054   *          - SUCCESS: PWR registers are de-initialized
00055   *          - ERROR: not applicable
00056   */
00057 ErrorStatus LL_PWR_DeInit(void)
00058 {
00059   /* Force reset of PWR clock */
00060   LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
00061 
00062   /* Release reset of PWR clock */
00063   LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
00064 
00065   return SUCCESS;
00066 }
00067 
00068 /**
00069   * @}
00070   */
00071 
00072 /**
00073   * @}
00074   */
00075 
00076 /**
00077   * @}
00078   */
00079 #endif /* defined(PWR) */
00080 /**
00081   * @}
00082   */
00083 
00084 #endif /* USE_FULL_LL_DRIVER */
00085 
00086 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/