Skip to content

Commit a92ac70

Browse files
author
Steven Cartmell
committed
HAL CRC: Move STM32 implementation to common folder and add targets
1 parent 6b5dabe commit a92ac70

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

targets/TARGET_STM/TARGET_STM32F0/mbed_crc_api.c renamed to targets/TARGET_STM/mbed_crc_api.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
#include "crc_api.h"
2+
#include "device.h"
23

34
#include "platform/mbed_assert.h"
45

56
#ifdef DEVICE_CRC
67

7-
#include "stm32f0xx_hal.h"
8-
98
static CRC_HandleTypeDef current_state;
109
static uint32_t final_xor;
1110

targets/targets.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@
10111011
}
10121012
},
10131013
"detect_code": ["0745"],
1014-
"device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH"],
1014+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "LOWPOWERTIMER", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH"],
10151015
"release_versions": ["2", "5"],
10161016
"device_name": "STM32F303RE"
10171017
},
@@ -1028,7 +1028,7 @@
10281028
}
10291029
},
10301030
"detect_code": ["0747"],
1031-
"device_has_add": ["ANALOGOUT", "CAN", "LOWPOWERTIMER", "FLASH"],
1031+
"device_has_add": ["ANALOGOUT", "CAN", "CRC", "LOWPOWERTIMER", "FLASH"],
10321032
"release_versions": ["2", "5"],
10331033
"device_name": "STM32F303ZE"
10341034
},
@@ -1064,7 +1064,7 @@
10641064
},
10651065
"detect_code": ["0720"],
10661066
"macros_add": ["USB_STM_HAL", "USBHOST_OTHER"],
1067-
"device_has_add": ["CRC", "SERIAL_ASYNCH", "SERIAL_FC", "FLASH", "LOWPOWERTIMER"],
1067+
"device_has_add": ["SERIAL_ASYNCH", "SERIAL_FC", "FLASH", "LOWPOWERTIMER"],
10681068
"release_versions": ["2", "5"],
10691069
"device_name": "STM32F401RE"
10701070
},

0 commit comments

Comments
 (0)