STM32L4xx_HAL_Driver  1.14.0
stm32l4xx_ll_crc.c
Go to the documentation of this file.
1 
19 #if defined(USE_FULL_LL_DRIVER)
20 
21 /* Includes ------------------------------------------------------------------*/
22 #include "stm32l4xx_ll_crc.h"
23 #include "stm32l4xx_ll_bus.h"
24 
25 #ifdef USE_FULL_ASSERT
26 #include "stm32_assert.h"
27 #else
28 #define assert_param(expr) ((void)0U)
29 #endif
30 
35 #if defined (CRC)
36 
41 /* Private types -------------------------------------------------------------*/
42 /* Private variables ---------------------------------------------------------*/
43 /* Private constants ---------------------------------------------------------*/
44 /* Private macros ------------------------------------------------------------*/
45 /* Private function prototypes -----------------------------------------------*/
46 
47 /* Exported functions --------------------------------------------------------*/
63 ErrorStatus LL_CRC_DeInit(CRC_TypeDef *CRCx)
64 {
65  ErrorStatus status = SUCCESS;
66 
67  /* Check the parameters */
68  assert_param(IS_CRC_ALL_INSTANCE(CRCx));
69 
70  if (CRCx == CRC)
71  {
72  /* Force CRC reset */
73  LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_CRC);
74 
75  /* Release CRC reset */
76  LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_CRC);
77  }
78  else
79  {
80  status = ERROR;
81  }
82 
83  return (status);
84 }
85 
98 #endif /* defined (CRC) */
99 
104 #endif /* USE_FULL_LL_DRIVER */
105 
106 /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
107 
ErrorStatus LL_CRC_DeInit(CRC_TypeDef *CRCx)
De-initialize CRC registers (Registers restored to their default values).
__STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs)
Force AHB1 peripherals reset. AHB1RSTR DMA1RST LL_AHB1_GRP1_ForceReset AHB1RSTR DMA2RST LL_AHB1_GRP...
Header file of CRC LL module.
Header file of BUS LL module.
__STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs)
Release AHB1 peripherals reset. AHB1RSTR DMA1RST LL_AHB1_GRP1_ReleaseReset AHB1RSTR DMA2RST LL_AHB1...
assert_param(IS_RTC_WAKEUP_CLOCK(WakeUpClock))