Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split devices in family files #341

Merged
merged 6 commits into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions cmake/stm32/c0.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,29 @@ target_compile_options(STM32::C0 INTERFACE
target_link_options(STM32::C0 INTERFACE
-mcpu=cortex-m0plus
)

list(APPEND STM32_ALL_DEVICES
C011D6
C011F4
C011F6
C011J4
C011J6
C031C4
C031C6
C031F4
C031F6
C031G4
C031G6
C031K4
C031K6
)

list(APPEND STM32_SUPPORTED_FAMILIES_LONG_NAME
STM32C0
)

list(APPEND STM32_FETCH_FAMILIES C0)

set(CUBE_C0_VERSION v1.1.0)
set(CMSIS_C0_VERSION v1.1.0)
set(HAL_C0_VERSION v1.1.0)
33 changes: 1 addition & 32 deletions cmake/stm32/common.cmake
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
set(STM32_SUPPORTED_FAMILIES_LONG_NAME
STM32C0
STM32F0 STM32F1 STM32F2 STM32F3 STM32F4 STM32F7
STM32G0 STM32G4
STM32H5
STM32H7_M4 STM32H7_M7
STM32L0 STM32L1 STM32L4 STM32L5
STM32U0 STM32U5
STM32WB_M4 STM32WL_M4 STM32WL_M0PLUS
STM32MP1_M4 )
include(stm32/devices)

foreach(FAMILY ${STM32_SUPPORTED_FAMILIES_LONG_NAME})
# append short names (F0, F1, H7_M4, ...) to STM32_SUPPORTED_FAMILIES_SHORT_NAME
Expand Down Expand Up @@ -380,25 +371,3 @@ if(NOT (TARGET STM32::Nano::FloatScan))
$<$<C_COMPILER_ID:GNU>:-Wl,--undefined,_scanf_float>
)
endif()

include(stm32/utilities)
include(stm32/c0)
include(stm32/f0)
include(stm32/f1)
include(stm32/f2)
include(stm32/f3)
include(stm32/f4)
include(stm32/f7)
include(stm32/g0)
include(stm32/g4)
include(stm32/h5)
include(stm32/h7)
include(stm32/l0)
include(stm32/l1)
include(stm32/l4)
include(stm32/l5)
include(stm32/u0)
include(stm32/u5)
include(stm32/wb)
include(stm32/wl)
include(stm32/mp1)
Loading
Loading