diff --git a/libraries/SrcWrapper/src/stm32/hw_config.c b/libraries/SrcWrapper/src/stm32/hw_config.c index d1c0649292..7a6d98a721 100644 --- a/libraries/SrcWrapper/src/stm32/hw_config.c +++ b/libraries/SrcWrapper/src/stm32/hw_config.c @@ -22,11 +22,14 @@ extern "C" { #if defined(HAL_CRC_MODULE_ENABLED) CRC_HandleTypeDef hcrc = {.Instance = #if defined(CRC2_BASE) - CRC2 + CRC2, #elif defined(CRC_BASE) - CRC + CRC, #else #error "No CRC instance available!" +#endif +#if defined(CRC_INPUTDATA_FORMAT_BYTES) + .InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES #endif }; #endif