/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file crc.c * @brief This file provides code for the configuration * of the CRC instances. ****************************************************************************** * @attention * * Copyright (c) 2025 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** */ /* USER CODE END Header */ /* Includes ------------------------------------------------------------------*/ #include "crc.h" /* USER CODE BEGIN 0 */ /* USER CODE END 0 */ /* CRC init function */ void MX_CRC_Init(void) { /* USER CODE BEGIN CRC_Init 0 */ /* USER CODE END CRC_Init 0 */ /* Peripheral clock enable */ LL_AHB1_GRP1_EnableClock(LL_AHB1_GRP1_PERIPH_CRC); /* USER CODE BEGIN CRC_Init 1 */ /* USER CODE END CRC_Init 1 */ LL_CRC_SetInputDataReverseMode(CRC, LL_CRC_INDATA_REVERSE_NONE); LL_CRC_SetOutputDataReverseMode(CRC, LL_CRC_OUTDATA_REVERSE_NONE); LL_CRC_SetPolynomialCoef(CRC, LL_CRC_DEFAULT_CRC32_POLY); LL_CRC_SetPolynomialSize(CRC, LL_CRC_POLYLENGTH_32B); LL_CRC_SetInitialData(CRC, LL_CRC_DEFAULT_CRC_INITVALUE); /* USER CODE BEGIN CRC_Init 2 */ /* USER CODE END CRC_Init 2 */ } /* USER CODE BEGIN 1 */ /* USER CODE END 1 */