You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

83 lines
2.2 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32h7xx_ll_pwr.c
  4. * @author MCD Application Team
  5. * @brief PWR LL module driver.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; COPYRIGHT(c) 2017 STMicroelectronics.
  10. * All rights reserved.</center></h2>
  11. *
  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
  16. *
  17. ******************************************************************************
  18. */
  19. #if defined (USE_FULL_LL_DRIVER)
  20. /* Includes ------------------------------------------------------------------*/
  21. #include "stm32h7xx_ll_pwr.h"
  22. /** @addtogroup STM32H7xx_LL_Driver
  23. * @{
  24. */
  25. #if defined (PWR)
  26. /** @defgroup PWR_LL PWR
  27. * @{
  28. */
  29. /* Private types -------------------------------------------------------------*/
  30. /* Private variables ---------------------------------------------------------*/
  31. /* Private constants ---------------------------------------------------------*/
  32. /* Private macros ------------------------------------------------------------*/
  33. /* Private function prototypes -----------------------------------------------*/
  34. /* Exported functions --------------------------------------------------------*/
  35. /** @addtogroup PWR_LL_Exported_Functions
  36. * @{
  37. */
  38. /** @addtogroup PWR_LL_EF_Init
  39. * @{
  40. */
  41. /**
  42. * @brief De-initialize the PWR registers to their default reset values.
  43. * @retval An ErrorStatus enumeration value:
  44. * - SUCCESS: PWR registers are de-initialized
  45. * - ERROR: not applicable
  46. */
  47. ErrorStatus LL_PWR_DeInit(void)
  48. {
  49. WRITE_REG(PWR->WKUPCR, (PWR_WKUPCR_WKUPC1 | PWR_WKUPCR_WKUPC2 | PWR_WKUPCR_WKUPC3 | \
  50. PWR_WKUPCR_WKUPC4 | PWR_WKUPCR_WKUPC5 | PWR_WKUPCR_WKUPC6));
  51. return SUCCESS;
  52. }
  53. /**
  54. * @}
  55. */
  56. /**
  57. * @}
  58. */
  59. /**
  60. * @}
  61. */
  62. #endif /* defined (PWR) */
  63. /**
  64. * @}
  65. */
  66. #endif /* defined (USE_FULL_LL_DRIVER) */
  67. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/