Skip to content

Commit febfb3a

Browse files
committed
forgot the F0 footnote
1 parent 7a0c4e1 commit febfb3a

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

os/hal/include/hal_crc.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ extern "C" {
135135
#endif
136136
void crcInit(void);
137137
void crcObjectInit(CRCDriver *crcp);
138-
#if (defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32L1xx)) // Those MCU dont have programmable CRC registers
138+
#if (defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32L1xx) || defined(STM32F07x) || \
139+
defined(STM32F030x4) || defined(STM32F030x6) || defined(STM32F030x8) || defined(STM32F030xC) || \
140+
defined(STM32F031x6) || defined(STM32F038xx) || \
141+
defined(STM32F042x6) || defined(STM32F048xx) || \
142+
defined(STM32F051x8) || defined(STM32F058xx) ) // Those MCU dont have programmable CRC registers
139143
void crcStart(CRCDriver *crcp);
140144
#else
141145
void crcStart(CRCDriver *crcp, const CRCConfig *config);

os/hal/src/hal_crc.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,12 @@ void crcObjectInit(CRCDriver *crcp) {
8080
* supports a default configuration
8181
*
8282
* @api
83-
*/
84-
85-
#if (defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32L1xx)) // Those MCU dont have programmable CRC registers
83+
*/
84+
#if (defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32L1xx) || defined(STM32F07x) || \
85+
defined(STM32F030x4) || defined(STM32F030x6) || defined(STM32F030x8) || defined(STM32F030xC) || \
86+
defined(STM32F031x6) || defined(STM32F038xx) || \
87+
defined(STM32F042x6) || defined(STM32F048xx) || \
88+
defined(STM32F051x8) || defined(STM32F058xx) ) // Those MCU dont have programmable CRC registers
8689
void crcStart(CRCDriver *crcp) {
8790
osalDbgCheck(crcp != NULL);
8891

0 commit comments

Comments
 (0)