py32f002b_ll_pwr.c 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /**
  2. ******************************************************************************
  3. * @file py32f002b_ll_pwr.c
  4. * @author MCU Application Team
  5. * @brief PWR LL module driver.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright (c) 2023 Puya Semiconductor Co.
  10. * All rights reserved.</center></h2>
  11. *
  12. * This software component is licensed by Puya 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. * @attention
  19. *
  20. * <h2><center>&copy; Copyright (c) 2016 STMicroelectronics.
  21. * All rights reserved.</center></h2>
  22. *
  23. * This software component is licensed by ST under BSD 3-Clause license,
  24. * the "License"; You may not use this file except in compliance with the
  25. * License. You may obtain a copy of the License at:
  26. * opensource.org/licenses/BSD-3-Clause
  27. *
  28. ******************************************************************************
  29. */
  30. #if defined(USE_FULL_LL_DRIVER)
  31. /* Includes ------------------------------------------------------------------*/
  32. #include "py32f002b_ll_pwr.h"
  33. #include "py32f002b_ll_bus.h"
  34. /** @addtogroup PY32F002B_LL_Driver
  35. * @{
  36. */
  37. #if defined(PWR)
  38. /** @defgroup PWR_LL PWR
  39. * @{
  40. */
  41. /* Private types -------------------------------------------------------------*/
  42. /* Private variables ---------------------------------------------------------*/
  43. /* Private constants ---------------------------------------------------------*/
  44. /* Private macros ------------------------------------------------------------*/
  45. /* Private function prototypes -----------------------------------------------*/
  46. /* Exported functions --------------------------------------------------------*/
  47. /** @addtogroup PWR_LL_Exported_Functions
  48. * @{
  49. */
  50. /** @addtogroup PWR_LL_EF_Init
  51. * @{
  52. */
  53. /**
  54. * @brief De-initialize the PWR registers to their default reset values.
  55. * @retval An ErrorStatus enumeration value:
  56. * - SUCCESS: PWR registers are de-initialized
  57. * - ERROR: not applicable
  58. */
  59. ErrorStatus LL_PWR_DeInit(void)
  60. {
  61. /* Force reset of PWR clock */
  62. LL_APB1_GRP1_ForceReset(LL_APB1_GRP1_PERIPH_PWR);
  63. /* Release reset of PWR clock */
  64. LL_APB1_GRP1_ReleaseReset(LL_APB1_GRP1_PERIPH_PWR);
  65. return SUCCESS;
  66. }
  67. /**
  68. * @}
  69. */
  70. /**
  71. * @}
  72. */
  73. /**
  74. * @}
  75. */
  76. #endif /* defined(PWR) */
  77. /**
  78. * @}
  79. */
  80. #endif /* USE_FULL_LL_DRIVER */
  81. /************************ (C) COPYRIGHT Puya *****END OF FILE****/