STM32F4xx_HAL_Driver  1.8.3
stm32f4xx_ll_crc.c
Go to the documentation of this file.
1 
18 #if defined(USE_FULL_LL_DRIVER)
19 
20 /* Includes ------------------------------------------------------------------*/
21 #include "stm32f4xx_ll_crc.h"
22 #include "stm32f4xx_ll_bus.h"
23 
24 #ifdef USE_FULL_ASSERT
25 #include "stm32_assert.h"
26 #else
27 #define assert_param(expr) ((void)0U)
28 #endif /* USE_FULL_ASSERT */
29 
34 #if defined (CRC)
35 
40 /* Private types -------------------------------------------------------------*/
41 /* Private variables ---------------------------------------------------------*/
42 /* Private constants ---------------------------------------------------------*/
43 /* Private macros ------------------------------------------------------------*/
44 /* Private function prototypes -----------------------------------------------*/
45 
46 /* Exported functions --------------------------------------------------------*/
62 ErrorStatus LL_CRC_DeInit(const CRC_TypeDef *CRCx)
63 {
64  ErrorStatus status = SUCCESS;
65 
66  /* Check the parameters */
67  assert_param(IS_CRC_ALL_INSTANCE(CRCx));
68 
69  if (CRCx == CRC)
70  {
71  /* Force CRC reset */
72  LL_AHB1_GRP1_ForceReset(LL_AHB1_GRP1_PERIPH_CRC);
73 
74  /* Release CRC reset */
75  LL_AHB1_GRP1_ReleaseReset(LL_AHB1_GRP1_PERIPH_CRC);
76  }
77  else
78  {
79  status = ERROR;
80  }
81 
82  return (status);
83 }
84 
97 #endif /* defined (CRC) */
98 
103 #endif /* USE_FULL_LL_DRIVER */
__STATIC_INLINE void LL_AHB1_GRP1_ReleaseReset(uint32_t Periphs)
Release AHB1 peripherals reset. @rmtoll AHB1RSTR GPIOARST LL_AHB1_GRP1_ReleaseReset AHB1RSTR GPIOBRS...
__STATIC_INLINE void LL_AHB1_GRP1_ForceReset(uint32_t Periphs)
Force AHB1 peripherals reset. @rmtoll AHB1RSTR GPIOARST LL_AHB1_GRP1_ForceReset AHB1RSTR GPIOBRST LL...
ErrorStatus LL_CRC_DeInit(const CRC_TypeDef *CRCx)
De-initialize CRC registers (Registers restored to their default values).
Header file of BUS LL module.
Header file of CRC LL module.