Skip to content

Commit 369b66d

Browse files
authored
Merge pull request #341 from xanthio/maintenance/split-devices-in-family-files
Split devices in family files
2 parents aa4b996 + b208c2f commit 369b66d

23 files changed

+1700
-1461
lines changed

cmake/stm32/c0.cmake

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,29 @@ target_compile_options(STM32::C0 INTERFACE
2323
target_link_options(STM32::C0 INTERFACE
2424
-mcpu=cortex-m0plus
2525
)
26+
27+
list(APPEND STM32_ALL_DEVICES
28+
C011D6
29+
C011F4
30+
C011F6
31+
C011J4
32+
C011J6
33+
C031C4
34+
C031C6
35+
C031F4
36+
C031F6
37+
C031G4
38+
C031G6
39+
C031K4
40+
C031K6
41+
)
42+
43+
list(APPEND STM32_SUPPORTED_FAMILIES_LONG_NAME
44+
STM32C0
45+
)
46+
47+
list(APPEND STM32_FETCH_FAMILIES C0)
48+
49+
set(CUBE_C0_VERSION v1.1.0)
50+
set(CMSIS_C0_VERSION v1.1.0)
51+
set(HAL_C0_VERSION v1.1.0)

cmake/stm32/common.cmake

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
set(STM32_SUPPORTED_FAMILIES_LONG_NAME
2-
STM32C0
3-
STM32F0 STM32F1 STM32F2 STM32F3 STM32F4 STM32F7
4-
STM32G0 STM32G4
5-
STM32H5
6-
STM32H7_M4 STM32H7_M7
7-
STM32L0 STM32L1 STM32L4 STM32L5
8-
STM32U0 STM32U5
9-
STM32WB_M4 STM32WL_M4 STM32WL_M0PLUS
10-
STM32MP1_M4 )
1+
include(stm32/devices)
112

123
foreach(FAMILY ${STM32_SUPPORTED_FAMILIES_LONG_NAME})
134
# append short names (F0, F1, H7_M4, ...) to STM32_SUPPORTED_FAMILIES_SHORT_NAME
@@ -380,25 +371,3 @@ if(NOT (TARGET STM32::Nano::FloatScan))
380371
$<$<C_COMPILER_ID:GNU>:-Wl,--undefined,_scanf_float>
381372
)
382373
endif()
383-
384-
include(stm32/utilities)
385-
include(stm32/c0)
386-
include(stm32/f0)
387-
include(stm32/f1)
388-
include(stm32/f2)
389-
include(stm32/f3)
390-
include(stm32/f4)
391-
include(stm32/f7)
392-
include(stm32/g0)
393-
include(stm32/g4)
394-
include(stm32/h5)
395-
include(stm32/h7)
396-
include(stm32/l0)
397-
include(stm32/l1)
398-
include(stm32/l4)
399-
include(stm32/l5)
400-
include(stm32/u0)
401-
include(stm32/u5)
402-
include(stm32/wb)
403-
include(stm32/wl)
404-
include(stm32/mp1)

0 commit comments

Comments
 (0)