stm32f1xx_ll_pwr.c 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /**
  2. ******************************************************************************
  3. * @file stm32f1xx_ll_pwr.c
  4. * @author MCD Application Team
  5. * @brief PWR LL module driver.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * Copyright (c) 2016 STMicroelectronics.
  10. * All rights reserved.
  11. *
  12. * This software is licensed under terms that can be found in the LICENSE file
  13. * in the root directory of this software component.
  14. * If no LICENSE file comes with this software, it is provided AS-IS.
  15. *
  16. ******************************************************************************
  17. */
  18. #if defined(USE_FULL_LL_DRIVER)
  19. /* Includes ------------------------------------------------------------------*/
  20. #include "stm32f1xx_ll_pwr.h"
  21. #include "stm32f1xx_ll_bus.h"
  22. /** @addtogroup STM32F1xx_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. /* Force reset of PWR clock */
  50. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
  51. /* Release reset of PWR clock */
  52. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
  53. return SUCCESS;
  54. }
  55. /**
  56. * @}
  57. */
  58. /**
  59. * @}
  60. */
  61. /**
  62. * @}
  63. */
  64. #endif /* defined(PWR) */
  65. /**
  66. * @}
  67. */
  68. #endif /* USE_FULL_LL_DRIVER */