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.
 
 
 

97 lines
2.4 KiB

  1. /**
  2. ******************************************************************************
  3. * @file stm32l0xx_ll_rng.c
  4. * @author MCD Application Team
  5. * @brief RNG LL module driver.
  6. ******************************************************************************
  7. * @attention
  8. *
  9. * <h2><center>&copy; Copyright(c) 2018 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 "stm32l0xx_ll_rng.h"
  22. #include "stm32l0xx_ll_bus.h"
  23. #ifdef USE_FULL_ASSERT
  24. #include "stm32_assert.h"
  25. #else
  26. #define assert_param(expr) ((void)0U)
  27. #endif
  28. /** @addtogroup STM32L0xx_LL_Driver
  29. * @{
  30. */
  31. #if defined (RNG)
  32. /** @addtogroup RNG_LL
  33. * @{
  34. */
  35. /* Private types -------------------------------------------------------------*/
  36. /* Private variables ---------------------------------------------------------*/
  37. /* Private constants ---------------------------------------------------------*/
  38. /* Private macros ------------------------------------------------------------*/
  39. /* Private function prototypes -----------------------------------------------*/
  40. /* Exported functions --------------------------------------------------------*/
  41. /** @addtogroup RNG_LL_Exported_Functions
  42. * @{
  43. */
  44. /** @addtogroup RNG_LL_EF_Init
  45. * @{
  46. */
  47. /**
  48. * @brief De-initialize RNG registers (Registers restored to their default values).
  49. * @param RNGx RNG Instance
  50. * @retval An ErrorStatus enumeration value:
  51. * - SUCCESS: RNG registers are de-initialized
  52. * - ERROR: not applicable
  53. */
  54. ErrorStatus LL_RNG_DeInit(RNG_TypeDef *RNGx)
  55. {
  56. /* Check the parameters */
  57. assert_param(IS_RNG_ALL_INSTANCE(RNGx));
  58. /* Enable RNG reset state */
  59. LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_RNG);
  60. /* Release RNG from reset state */
  61. LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_RNG);
  62. return (SUCCESS);
  63. }
  64. /**
  65. * @}
  66. */
  67. /**
  68. * @}
  69. */
  70. /**
  71. * @}
  72. */
  73. #endif /* RNG */
  74. /**
  75. * @}
  76. */
  77. #endif /* USE_FULL_LL_DRIVER */
  78. /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/