STM32H735xx HAL User Manual
|
00001 /** 00002 ****************************************************************************** 00003 * @file stm32h7xx_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 00019 #if defined (USE_FULL_LL_DRIVER) 00020 00021 /* Includes ------------------------------------------------------------------*/ 00022 #include "stm32h7xx_ll_pwr.h" 00023 00024 /** @addtogroup STM32H7xx_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 #if defined (PWR_WKUPCR_WKUPC3) 00058 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | PWR_WKUPCR_WKUPC3 | \ 00059 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC5 | PWR_WKUPCR_WKUPC6)); 00060 #else 00061 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | \ 00062 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC6)); 00063 #endif /* defined (PWR_WKUPCR_WKUPC3) */ 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 /* defined (USE_FULL_LL_DRIVER) */ 00084