FIX: Flash page size check is STM (or clone) specific (#14130)
[betaflight.git] / lib / main / STM32H7 / Drivers / STM32H7xx_HAL_Driver / Src / stm32h7xx_ll_pwr.c
blob28ce1618673fc9cec07e55d57d8f4d117029c207
1 /**
2 ******************************************************************************
3 * @file stm32h7xx_ll_pwr.c
4 * @author MCD Application Team
5 * @brief PWR LL module driver.
6 ******************************************************************************
7 * @attention
9 * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics.
10 * All rights reserved.</center></h2>
12 * This software component is licensed by ST under BSD 3-Clause license,
13 * the "License"; You may not use this file except in compliance with the
14 * License. You may obtain a copy of the License at:
15 * opensource.org/licenses/BSD-3-Clause
17 ******************************************************************************
20 #if defined (USE_FULL_LL_DRIVER)
22 /* Includes ------------------------------------------------------------------*/
23 #include "stm32h7xx_ll_pwr.h"
25 /** @addtogroup STM32H7xx_LL_Driver
26 * @{
29 #if defined (PWR)
31 /** @defgroup PWR_LL PWR
32 * @{
35 /* Private types -------------------------------------------------------------*/
36 /* Private variables ---------------------------------------------------------*/
37 /* Private constants ---------------------------------------------------------*/
38 /* Private macros ------------------------------------------------------------*/
39 /* Private function prototypes -----------------------------------------------*/
41 /* Exported functions --------------------------------------------------------*/
42 /** @addtogroup PWR_LL_Exported_Functions
43 * @{
46 /** @addtogroup PWR_LL_EF_Init
47 * @{
50 /**
51 * @brief De-initialize the PWR registers to their default reset values.
52 * @retval An ErrorStatus enumeration value:
53 * - SUCCESS: PWR registers are de-initialized
54 * - ERROR: not applicable
56 ErrorStatus LL_PWR_DeInit(void)
58 #if defined (PWR_WKUPCR_WKUPC3)
59 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | PWR_WKUPCR_WKUPC3 | \
60 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC5 | PWR_WKUPCR_WKUPC6));
61 #else
62 WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | \
63 PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC6));
64 #endif /* defined (PWR_WKUPCR_WKUPC3) */
65 return SUCCESS;
68 /**
69 * @}
72 /**
73 * @}
76 /**
77 * @}
79 #endif /* defined (PWR) */
80 /**
81 * @}
84 #endif /* defined (USE_FULL_LL_DRIVER) */
86 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/