STM32L443xx HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32l4xx_ll_pwr.c 00004 * @author MCD Application Team 00005 * @brief PWR LL module driver. 00006 ****************************************************************************** 00007 * @attention 00008 * 00009 * Copyright (c) 2017 STMicroelectronics. 00010 * All rights reserved. 00011 * 00012 * This software is licensed under terms that can be found in the LICENSE file 00013 * in the root directory of this software component. 00014 * If no LICENSE file comes with this software, it is provided AS-IS. 00015 * 00016 ****************************************************************************** 00017 */ 00018 #if defined(USE_FULL_LL_DRIVER) 00019 00020 /* Includes ------------------------------------------------------------------*/ 00021 #include "stm32l4xx_ll_pwr.h" 00022 #include "stm32l4xx_ll_bus.h" 00023 00024 /** @addtogroup STM32L4xx_LL_Driver 00025 * @{ 00026 */ 00027 00028 #if defined(PWR) 00029 00030 /** @defgroup PWR_LL PWR 00031 * @{ 00032 */ 00033 00034 /* Private types -------------------------------------------------------------*/ 00035 /* Private variables ---------------------------------------------------------*/ 00036 /* Private constants ---------------------------------------------------------*/ 00037 /* Private macros ------------------------------------------------------------*/ 00038 /* Private function prototypes -----------------------------------------------*/ 00039 00040 /* Exported functions --------------------------------------------------------*/ 00041 /** @addtogroup PWR_LL_Exported_Functions 00042 * @{ 00043 */ 00044 00045 /** @addtogroup PWR_LL_EF_Init 00046 * @{ 00047 */ 00048 00049 /** 00050 * @brief De-initialize the PWR registers to their default reset values. 00051 * @retval An ErrorStatus enumeration value: 00052 * - SUCCESS: PWR registers are de-initialized 00053 * - ERROR: not applicable 00054 */ 00055 ErrorStatus LL_PWR_DeInit(void) 00056 { 00057 /* Force reset of PWR clock */ 00058 LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR); 00059 00060 /* Release reset of PWR clock */ 00061 LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR); 00062 00063 return SUCCESS; 00064 } 00065 00066 /** 00067 * @} 00068 */ 00069 00070 /** 00071 * @} 00072 */ 00073 00074 /** 00075 * @} 00076 */ 00077 #endif /* defined(PWR) */ 00078 /** 00079 * @} 00080 */ 00081 00082 #endif /* USE_FULL_LL_DRIVER */