stm32f1xx_ll_pwr.c 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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 */