Skip to content

Commit ce13e1c

Browse files
authored
Merge pull request #15392 from augustozanellato/stm32g4_hw_crc
Add hardware CRC support to STM32G4
2 parents 65f45cd + 7551315 commit ce13e1c

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

targets/TARGET_STM/TARGET_STM32G4/objects.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,8 @@ struct qspi_s {
136136
//#include "common_objects.h"
137137
#include "gpio_object.h"
138138

139+
#define HAL_CRC_IS_SUPPORTED(polynomial, width) ((width) == 7 || (width) == 8 || (width) == 16 || (width) == 32)
140+
139141
#ifdef __cplusplus
140142
}
141143
#endif

targets/targets.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3018,7 +3018,8 @@
30183018
"MPU",
30193019
"SERIAL_ASYNCH",
30203020
"TRNG",
3021-
"CAN"
3021+
"CAN",
3022+
"CRC"
30223023
]
30233024
},
30243025
"MCU_STM32G431xB": {

0 commit comments

Comments
 (0)