STM32L4xx_HAL_Driver  1.14.0
Initialization and de-initialization functions

Functions

ErrorStatus LL_CRC_DeInit (CRC_TypeDef *CRCx)
 De-initialize CRC registers (Registers restored to their default values). More...
 

Detailed Description

Function Documentation

◆ LL_CRC_DeInit()

ErrorStatus LL_CRC_DeInit ( CRC_TypeDef *  CRCx)

De-initialize CRC registers (Registers restored to their default values).

Parameters
CRCxCRC Instance
Return values
AnErrorStatus enumeration value:
  • SUCCESS: CRC registers are de-initialized
  • ERROR: CRC registers are not de-initialized

Definition at line 63 of file stm32l4xx_ll_crc.c.

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 }
__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...
__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))