Skip to content

Commit 87d2304

Browse files
committed
fix(CRC): explicitly set InputDataFormat to avoid assert
when assert feature is enabled. Default value (0) is not correct. Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parent 21dce35 commit 87d2304

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/SrcWrapper/src/stm32/hw_config.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ extern "C" {
2222
#if defined(HAL_CRC_MODULE_ENABLED)
2323
CRC_HandleTypeDef hcrc = {.Instance =
2424
#if defined(CRC2_BASE)
25-
CRC2
25+
CRC2,
2626
#elif defined(CRC_BASE)
27-
CRC
27+
CRC,
2828
#else
2929
#error "No CRC instance available!"
3030
#endif
31+
.InputDataFormat = CRC_INPUTDATA_FORMAT_BYTES
3132
};
3233
#endif
3334

0 commit comments

Comments
 (0)
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