From 997888794f5ba79c0242dea6485c0e77545625e2 Mon Sep 17 00:00:00 2001 From: Frederic Pillon Date: Fri, 3 Feb 2023 15:03:55 +0100 Subject: [PATCH] fix(CRC): explicitly set InputDataFormat to avoid assert when assert feature is enabled. Default value (0) is not correct. Signed-off-by: Frederic Pillon --- libraries/SrcWrapper/src/stm32/hw_config.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy