STM32F479xx HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32f4xx_ll_pwr.c 00004 * @author MCD Application Team 00005 * @brief PWR LL module driver. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * <h2><center>© Copyright (c) 2017 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 #if defined(USE_FULL_LL_DRIVER) 00020 00021 /* Includes ------------------------------------------------------------------*/ 00022 #include "stm32f4xx_ll_pwr.h" 00023 #include "stm32f4xx_ll_bus.h" 00024 00025 /** @addtogroup STM32F4xx_LL_Driver 00026 * @{ 00027 */ 00028 00029 #if defined(PWR) 00030 00031 /** @defgroup PWR_LL PWR 00032 * @{ 00033 */ 00034 00035 /* Private types -------------------------------------------------------------*/ 00036 /* Private variables ---------------------------------------------------------*/ 00037 /* Private constants ---------------------------------------------------------*/ 00038 /* Private macros ------------------------------------------------------------*/ 00039 /* Private function prototypes -----------------------------------------------*/ 00040 00041 /* Exported functions --------------------------------------------------------*/ 00042 /** @addtogroup PWR_LL_Exported_Functions 00043 * @{ 00044 */ 00045 00046 /** @addtogroup PWR_LL_EF_Init 00047 * @{ 00048 */ 00049 00050 /** 00051 * @brief De-initialize the PWR registers to their default reset values. 00052 * @retval An ErrorStatus enumeration value: 00053 * - SUCCESS: PWR registers are de-initialized 00054 * - ERROR: not applicable 00055 */ 00056 ErrorStatus LL_PWR_DeInit(void) 00057 { 00058 /* Force reset of PWR clock */ 00059 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR); 00060 00061 /* Release reset of PWR clock */ 00062 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR); 00063 00064 return SUCCESS; 00065 } 00066 00067 /** 00068 * @} 00069 */ 00070 00071 /** 00072 * @} 00073 */ 00074 00075 /** 00076 * @} 00077 */ 00078 #endif /* defined(PWR) */ 00079 /** 00080 * @} 00081 */ 00082 00083 #endif /* USE_FULL_LL_DRIVER */ 00084 00085 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/