Src/EEPROM_Emul/eeprom_emul.c
void ConfigureCrc(void)
{
  /* (1) Enable peripheral clock for CRC */
  LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_CRC);

  /* (2) Configure CRC functional parameters */

  /* Configure CRC calculation unit with user defined polynomial */
  LL_CRC_SetPolynomialCoef(CRC, CRC_POLYNOMIAL_VALUE);
  LL_CRC_SetPolynomialSize(CRC, CRC_POLYNOMIAL_LENGTH);

  /* Initialize default CRC initial value */
  /* Reset value is LL_CRC_DEFAULT_CRC_INITVALUE */
  /* LL_CRC_SetInitialData(CRC, LL_CRC_DEFAULT_CRC_INITVALUE);*/

  /* Set input data inversion mode : No inversion*/
  /* Reset value is LL_CRC_INDATA_REVERSE_NONE */
  /* LL_CRC_SetInputDataReverseMode(CRC, LL_CRC_INDATA_REVERSE_NONE); */

  /* Set output data inversion mode : No inversion */
  /* Reset value is LL_CRC_OUTDATA_REVERSE_NONE */
  /* LL_CRC_SetOutputDataReverseMode(CRC, LL_CRC_OUTDATA_REVERSE_NONE); */
}
/**
  * @brief  This function configures CRC Instance.
  * @note   This function is used to :
  *         -1- Enable peripheral clock for CRC.
  *         -2- Configure CRC functional parameters.
  * @note   Peripheral configuration is minimal configuration from reset values.
  *         Thus, some useless LL unitary functions calls below are provided as
  *         commented examples - setting is default configuration from reset.
  * @param  None
  * @retval None
  */
@brief  This function configures CRC Instance.
@note   This function is used to :
-1- Enable peripheral clock for CRC.
-2- Configure CRC functional parameters.
@note   Peripheral configuration is minimal configuration from reset values.
Thus, some useless LL unitary functions calls below are provided as
commented examples - setting is default configuration from reset.
@param  None
@retval None
@brief This function configures CRC Instance . @note This function is used to : - 1 - Enable peripheral clock for CRC . - 2 - Configure CRC functional parameters . @note Peripheral configuration is minimal configuration from reset values . Thus some useless LL unitary functions calls below are provided as commented examples - setting is default configuration from reset . @param None @retval None
void ConfigureCrc(void)
{
  LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_CRC);
  LL_CRC_SetPolynomialCoef(CRC, CRC_POLYNOMIAL_VALUE);
  LL_CRC_SetPolynomialSize(CRC, CRC_POLYNOMIAL_LENGTH);
}
void ConfigureCrc ( void ) { LL_AHB1_GRP1_EnableClock ( LL_AHB1_GRP1_PERIPH_CRC ) ; LL_CRC_SetPolynomialCoef ( CRC , CRC_POLYNOMIAL_VALUE ) ; LL_CRC_SetPolynomialSize ( CRC , CRC_POLYNOMIAL_LENGTH ) ; }
@brief  This function configures CRC Instance.
@brief This function configures CRC Instance .
/* (1) Enable peripheral clock for CRC */ /* (2) Configure CRC functional parameters */ /* Configure CRC calculation unit with user defined polynomial */ /* Initialize default CRC initial value */ /* Reset value is LL_CRC_DEFAULT_CRC_INITVALUE */ /* LL_CRC_SetInitialData(CRC, LL_CRC_DEFAULT_CRC_INITVALUE);*/ /* Set input data inversion mode : No inversion*/ /* Reset value is LL_CRC_INDATA_REVERSE_NONE */ /* LL_CRC_SetInputDataReverseMode(CRC, LL_CRC_INDATA_REVERSE_NONE); */ /* Set output data inversion mode : No inversion */ /* Reset value is LL_CRC_OUTDATA_REVERSE_NONE */ /* LL_CRC_SetOutputDataReverseMode(CRC, LL_CRC_OUTDATA_REVERSE_NONE); */