Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:10

0001 /**
0002   ******************************************************************************
0003   * @file    stm32h7xx_ll_pwr.c
0004   * @author  MCD Application Team
0005   * @brief   PWR LL module driver.
0006   ******************************************************************************
0007   * @attention
0008   *
0009   * Copyright (c) 2017 STMicroelectronics.
0010   * All rights reserved.
0011   *
0012   * This software is licensed under terms that can be found in the LICENSE file
0013   * in the root directory of this software component.
0014   * If no LICENSE file comes with this software, it is provided AS-IS.
0015   *
0016   ******************************************************************************
0017   */
0018 
0019 #if defined (USE_FULL_LL_DRIVER)
0020 
0021 /* Includes ------------------------------------------------------------------*/
0022 #include "stm32h7xx_ll_pwr.h"
0023 
0024 /** @addtogroup STM32H7xx_LL_Driver
0025   * @{
0026   */
0027 
0028 #if defined (PWR)
0029 
0030 /** @defgroup PWR_LL PWR
0031   * @ingroup RTEMSBSPsARMSTM32H7
0032   * @{
0033   */
0034 
0035 /* Private types -------------------------------------------------------------*/
0036 /* Private variables ---------------------------------------------------------*/
0037 /* Private constants ---------------------------------------------------------*/
0038 /* Private macros ------------------------------------------------------------*/
0039 /* Private function prototypes -----------------------------------------------*/
0040 
0041 /* Exported functions --------------------------------------------------------*/
0042 /** @addtogroup PWR_LL_Exported_Functions
0043   * @{
0044   */
0045 
0046 /** @addtogroup PWR_LL_EF_Init
0047   * @{
0048   */
0049 
0050 /**
0051   * @brief  De-initialize the PWR registers to their default reset values.
0052   * @retval An ErrorStatus enumeration value:
0053   *          - SUCCESS: PWR registers are de-initialized
0054   *          - ERROR: not applicable
0055   */
0056 ErrorStatus LL_PWR_DeInit(void)
0057 {
0058 #if defined (PWR_WKUPCR_WKUPC3)
0059   WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | PWR_WKUPCR_WKUPC3 | \
0060                           PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC5 | PWR_WKUPCR_WKUPC6));
0061 #else
0062   WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | \
0063                           PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC6));
0064 #endif /* defined (PWR_WKUPCR_WKUPC3) */
0065   return SUCCESS;
0066 }
0067 
0068 /**
0069   * @}
0070   */
0071 
0072 /**
0073   * @}
0074   */
0075 
0076 /**
0077   * @}
0078   */
0079 #endif /* defined (PWR) */
0080 /**
0081   * @}
0082   */
0083 
0084 #endif /* defined (USE_FULL_LL_DRIVER) */
0085