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.

stm32l1xx_ll_pwr.c 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /**
  2. ******************************************************************************
  3. * @file stm32l1xx_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 "stm32l1xx_ll_pwr.h"
  22. #include "stm32l1xx_ll_bus.h"
  23. /** @addtogroup STM32L1xx_LL_Driver
  24. * @{
  25. */
  26. #if defined(PWR)
  27. /** @defgroup PWR_LL PWR
  28. * @{
  29. */
  30. /* Private types -------------------------------------------------------------*/
  31. /* Private variables ---------------------------------------------------------*/
  32. /* Private constants ---------------------------------------------------------*/
  33. /* Private macros ------------------------------------------------------------*/
  34. /* Private function prototypes -----------------------------------------------*/
  35. /* Exported functions --------------------------------------------------------*/
  36. /** @addtogroup PWR_LL_Exported_Functions
  37. * @{
  38. */
  39. /** @addtogroup PWR_LL_EF_Init
  40. * @{
  41. */
  42. /**
  43. * @brief De-initialize the PWR registers to their default reset values.
  44. * @retval An ErrorStatus enumeration value:
  45. * - SUCCESS: PWR registers are de-initialized
  46. * - ERROR: not applicable
  47. */
  48. ErrorStatus LL_PWR_DeInit(void)
  49. {
  50. /* Force reset of PWR clock */
  51. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
  52. /* Release reset of PWR clock */
  53. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
  54. return SUCCESS;
  55. }
  56. /**
  57. * @}
  58. */
  59. /**
  60. * @}
  61. */
  62. /**
  63. * @}
  64. */
  65. #endif /* defined(PWR) */
  66. /**
  67. * @}
  68. */
  69. #endif /* USE_FULL_LL_DRIVER */
  70. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/