mirror of https://github.com/ARMmbed/mbed-os.git
cmake: Refactor ST targets
Refactor all ST targets to be CMake buildsystem targets. This removes the need for checking MBED_TARGET_LABELS repeatedly and allows us to be more flexible in the way we include MBED_TARGET source in the build. A side effect of this is it will allow us to support custom targets without breaking the build for 'standard' targets, as we use CMake's standard mechanism for adding build rules to the build system, rather than implementing our own layer of logic to exclude files not needed for the target being built. Using this approach, if an MBED_TARGET is not linked to using `target_link_libraries` its source files will not be added to the build. This means custom target source can be added to the user's application CMakeLists.txt without polluting the build system when trying to compile for a standard MBED_TARGET.pull/14199/head
parent
0e491cc0cf
commit
d9e184b6c6
|
|
@ -1,5 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
include(../tools/cmake/set_linker_script.cmake)
|
||||
|
||||
if("Ambiq_Micro" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_Ambiq_Micro)
|
||||
|
|
|
|||
|
|
@ -1,42 +1,29 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32F0" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F0)
|
||||
elseif("STM32F1" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F1)
|
||||
elseif("STM32F2" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F2)
|
||||
elseif("STM32F3" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F3)
|
||||
elseif("STM32F4" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F4)
|
||||
elseif("STM32F7" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F7)
|
||||
elseif("STM32G0" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G0)
|
||||
elseif("STM32G4" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G4)
|
||||
elseif("STM32H7" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H7)
|
||||
elseif("STM32L0" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32L0)
|
||||
elseif("STM32L1" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32L1)
|
||||
elseif("STM32L4" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32L4)
|
||||
elseif("STM32L5" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32L5)
|
||||
elseif("STM32WB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32WB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F0 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F1 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F2 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F3 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F4 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F7 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G0 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G4 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32H7 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32L0 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32L1 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32L4 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32L5 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32WB EXCLUDE_FROM_ALL)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
add_library(STM INTERFACE)
|
||||
|
||||
target_include_directories(STM
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM
|
||||
INTERFACE
|
||||
USBPhy_STM32.cpp
|
||||
analogin_api.c
|
||||
|
|
|
|||
|
|
@ -1,24 +1,20 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32F091xC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F091xC)
|
||||
elseif("STM32F072xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F072xB)
|
||||
elseif("STM32F070xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F070xB)
|
||||
elseif("STM32F030x8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F030x8)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F091xC EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F072xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F070xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F030x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
add_library(STM32F0 INTERFACE)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F0
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F0
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -29,3 +25,5 @@ target_sources(mbed-core
|
|||
serial_device.c
|
||||
spi_api.c
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F0 INTERFACE STM STM32F0Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F0Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F0Cube_FW
|
||||
INTERFACE
|
||||
STM32F0xx_HAL_Driver/Legacy/stm32f0xx_hal_can_legacy.c
|
||||
STM32F0xx_HAL_Driver/stm32f0xx_hal.c
|
||||
|
|
@ -66,7 +68,7 @@ target_sources(mbed-core
|
|||
system_stm32f0xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F0Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f030x8.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F030x8 INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F030x8
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F030x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F030x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F030x8 INTERFACE STM32F0)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F070RB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F070RB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F070RB EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f070xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F070xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F070xB
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F070xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F070xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F070xB INTERFACE STM32F0)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F070RB INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F070RB
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F070RB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F070RB INTERFACE STM32F070xB)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F072RB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F072RB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F072RB EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f072xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F072xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F072xB
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F072xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F072xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F072xB INTERFACE STM32F0)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F072RB INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F072RB
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F072RB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F072RB INTERFACE STM32F072xB)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F091RC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F091RC)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F091RC EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f091xc.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F091xC INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F091xC
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F091xC
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F091xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F091xC INTERFACE STM32F0)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F091RC INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F091RC
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F091RC
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F091RC INTERFACE STM32F091xC)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32F103x8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F103x8)
|
||||
elseif("STM32F103xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F103xB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F103x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F103xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F1 INTERFACE)
|
||||
|
||||
target_sources(STM32F1
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
flash_api.c
|
||||
|
|
@ -17,9 +17,9 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F1
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F1 INTERFACE STM STM32F1Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F1Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F1Cube_FW
|
||||
INTERFACE
|
||||
STM32F1xx_HAL_Driver/Legacy/stm32f1xx_hal_can_legacy.c
|
||||
STM32F1xx_HAL_Driver/stm32f1xx_hal.c
|
||||
|
|
@ -65,7 +67,7 @@ target_sources(mbed-core
|
|||
system_stm32f1xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F1Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,15 +9,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103x8.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F103x8 INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F103x8
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F103x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F103x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F103x8 INTERFACE STM32F1)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F103RB" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_NUCLEO_F103RB)
|
||||
set(PERIPHERALPINS_FILE TARGET_NUCLEO_F103RB/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE system_clock.c)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F103RB EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S)
|
||||
|
|
@ -15,16 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F103xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F103xB
|
||||
INTERFACE
|
||||
${PERIPHERALPINS_FILE}
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
${SYSTEM_CLOCK_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F103xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F103xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F103xB INTERFACE STM32F1)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,16 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F103RB INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F103RB
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F103RB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F103RB INTERFACE STM32F103xB)
|
||||
|
|
@ -1,25 +1,23 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F207ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F207xG)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F207xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F2 INTERFACE)
|
||||
|
||||
target_sources(STM32F2
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
flash_api.c
|
||||
gpio_irq_device.c
|
||||
pwmout_device.c
|
||||
serial_device.c
|
||||
spi_api.c
|
||||
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
flash_api.c
|
||||
gpio_irq_device.c
|
||||
pwmout_device.c
|
||||
serial_device.c
|
||||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F2
|
||||
INTERFACE
|
||||
.
|
||||
./STM32Cube_FW
|
||||
|
|
@ -27,3 +25,5 @@ target_include_directories(mbed-core
|
|||
./STM32Cube_FW/STM32F2xx_HAL_Driver
|
||||
./STM32Cube_FW/STM32F2xx_HAL_Driver/Legacy
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F2 INTERFACE STM STM32F2Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F2Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F2Cube_FW
|
||||
INTERFACE
|
||||
STM32F2xx_HAL_Driver/Legacy/stm32f2xx_hal_can_legacy.c
|
||||
STM32F2xx_HAL_Driver/stm32f2xx_hal.c
|
||||
|
|
@ -71,7 +73,7 @@ target_sources(mbed-core
|
|||
system_stm32f2xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F2Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F207ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F207ZG)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F207ZG EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f207xx.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xg.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F207xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F207xG
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F207xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F207xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F207xG INTERFACE STM32F2)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F207ZG INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F207ZG
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F207ZG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F207ZG INTERFACE STM32F207xG)
|
||||
|
|
|
|||
|
|
@ -1,26 +1,21 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32F302x8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F302x8)
|
||||
elseif("STM32F303x8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F303x8)
|
||||
elseif("STM32F303xC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F303xC)
|
||||
elseif("STM32F303xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F303xE)
|
||||
elseif("STM32F334x8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F334x8)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F302x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F303x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F303xC EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F303xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F334x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
add_library(STM32F3 INTERFACE)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F3
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F3
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -30,3 +25,5 @@ target_sources(mbed-core
|
|||
serial_device.c
|
||||
spi_api.c
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F3 INTERFACE STM STM32F3Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F3Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F3Cube_FW
|
||||
INTERFACE
|
||||
STM32F3xx_HAL_Driver/Legacy/stm32f3xx_hal_can_legacy.c
|
||||
STM32F3xx_HAL_Driver/stm32f3xx_hal.c
|
||||
|
|
@ -77,7 +79,7 @@ target_sources(mbed-core
|
|||
system_stm32f3xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F3Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S)
|
||||
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F302X8.ld)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f302x8.S)
|
||||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f302x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F302x8 INTERFACE)
|
||||
|
||||
target_include_directories(STM32F302x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F302x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F302x8 INTERFACE STM32F3)
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F303K8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F303K8)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F303K8 EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303x8.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F303x8 INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F303x8
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F303x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303x8 INTERFACE STM32F3)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-core
|
||||
add_library(NUCLEO_F303K8 INTERFACE)
|
||||
|
||||
target_include_directories(NUCLEO_F303K8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(NUCLEO_F303K8
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303K8 INTERFACE STM32F303x8)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,6 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F303K8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F303K8)
|
||||
endif()
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S)
|
||||
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F303XC.ld)
|
||||
|
|
@ -13,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xc.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F303xC INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F303xC
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F303xC
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303xC INTERFACE STM32F3)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F303RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F303RE)
|
||||
elseif("NUCLEO_F303ZE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F303ZE)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F303RE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_NUCLEO_F303ZE EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S)
|
||||
|
|
@ -15,15 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F303xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F303xE
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F303xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303xE INTERFACE STM32F3)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F303RE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F303RE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F303RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303RE INTERFACE STM32F303xE)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F303ZE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F303ZE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F303ZE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303ZE INTERFACE STM32F303xE)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f334x8.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F334x8 INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F334x8
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F334x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F334x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F334x8 INTERFACE STM32F3)
|
||||
|
|
|
|||
|
|
@ -1,39 +1,26 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("MTS_DRAGONFLY_F411RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_MTS_DRAGONFLY_F411RE)
|
||||
elseif("MTS_MDOT_F411RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_MTS_MDOT_F411RE)
|
||||
elseif("STM32F401xC" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F401xC)
|
||||
elseif("STM32F401xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F401xE)
|
||||
elseif("STM32F407xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F407xE)
|
||||
elseif("STM32F407xG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F407xG)
|
||||
elseif("STM32F410xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F410xB)
|
||||
elseif("STM32F411xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F411xE)
|
||||
elseif("STM32F412xG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F412xG)
|
||||
elseif("STM32F413xH" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F413xH)
|
||||
elseif("STM32F429xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F429xI)
|
||||
elseif("STM32F437xG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F437xG)
|
||||
elseif("STM32F439xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F439xI)
|
||||
elseif("STM32F446xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F446xE)
|
||||
elseif("STM32F469xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F469xI)
|
||||
endif()
|
||||
add_subdirectory(TARGET_MTS_DRAGONFLY_F411RE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_MTS_MDOT_F411RE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F401xC EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F401xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F407xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F407xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F410xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F411xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F412xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F413xH EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F429xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F437xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F439xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F446xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F469xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F4 INTERFACE)
|
||||
|
||||
target_sources(STM32F4
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -44,13 +31,9 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F4
|
||||
INTERFACE
|
||||
.
|
||||
./STM32Cube_FW
|
||||
./STM32Cube_FW/CMSIS
|
||||
./STM32Cube_FW/STM32F4xx_HAL_Driver
|
||||
./STM32Cube_FW/STM32F4xx_HAL_Driver/Legacy
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4 INTERFACE STM STM32F4Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,15 +1,19 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(STM32F4xx_HAL_Driver)
|
||||
add_subdirectory(STM32F4xx_HAL_Driver EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F4Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F4Cube_FW
|
||||
INTERFACE
|
||||
system_stm32f4xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F4Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
./CMSIS
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4Cube_FW INTERFACE STM32F4xx_HAL_Driver)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,11 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(Legacy)
|
||||
add_subdirectory(Legacy EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F4xx_HAL_Driver INTERFACE)
|
||||
|
||||
target_sources(STM32F4xx_HAL_Driver
|
||||
INTERFACE
|
||||
stm32f4xx_hal.c
|
||||
stm32f4xx_hal_adc.c
|
||||
|
|
@ -96,7 +98,9 @@ target_sources(mbed-core
|
|||
stm32f4xx_ll_utils.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F4xx_HAL_Driver
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4xx_HAL_Driver INTERFACE STM32F4xxLegacyHAL)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F4xxLegacyHAL INTERFACE)
|
||||
|
||||
target_sources(STM32F4xxLegacyHAL
|
||||
INTERFACE
|
||||
stm32f4xx_hal_can_legacy.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F4xxLegacyHAL
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(MTS_DRAGONFLY_F411RE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(MTS_DRAGONFLY_F411RE
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
ONBOARD_TELIT_HE910.cpp
|
||||
|
|
@ -19,7 +19,11 @@ target_sources(mbed-core
|
|||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(MTS_DRAGONFLY_F411RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(MTS_DRAGONFLY_F411RE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(MTS_DRAGONFLY_F411RE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -9,16 +9,20 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(MTS_MDOT_F411RE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(MTS_MDOT_F411RE
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
PeripheralPins.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(MTS_MDOT_F411RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(MTS_MDOT_F411RE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(MTS_MDOT_F411RE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -6,16 +6,20 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XC.ld)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F401xC INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F401xC
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
PeripheralPins.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F401xC
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F401xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F401xC INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_subdirectory(TARGET_NUCLEO_F401RE EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S)
|
||||
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XE.ld)
|
||||
|
|
@ -9,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f401xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F401xE INTERFACE)
|
||||
|
||||
if("NUCLEO_F401RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F401RE)
|
||||
endif()
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
target_sources(STM32F401xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F401xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F401xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F401xE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_include_directories(mbed-core
|
||||
add_library(NUCLEO_F401RE INTERFACE)
|
||||
|
||||
target_include_directories(NUCLEO_F401RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(NUCLEO_F401RE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F401RE INTERFACE STM32F401xE)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("ARCH_MAX" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_ARCH_MAX)
|
||||
endif()
|
||||
add_subdirectory(TARGET_ARCH_MAX INTERFACE)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/STM32F407xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F407xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
target_sources(STM32F407xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F407xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F407xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F407xE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
add_library(ARCH_MAX INTERFACE)
|
||||
|
||||
target_sources(ARCH_MAX
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(ARCH_MAX
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(ARCH_MAX INTERFACE STM32F407xE)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/STM32F407xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F407xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
target_sources(STM32F407xG
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F407xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F407xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F407xG INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f410xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F410xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
target_sources(STM32F410xB
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F410xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F410xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F410xB INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F411RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F411RE)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F411RE EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F411xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
target_sources(STM32F411xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F411xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F411xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F411xE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
add_library(NUCLEO_F411RE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F411RE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F411RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F411RE INTERFACE STM32F411xE)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F412ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F412ZG)
|
||||
elseif("WIO_EMW3166" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_WIO_EMW3166)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F412ZG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_WIO_EMW3166 EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f412zx.S)
|
||||
|
|
@ -15,15 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f412xg.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F412xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F412xG
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F412xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F412xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F412xG INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F412ZG INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F412ZG
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F412ZG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F412ZG INTERFACE STM32F412xG)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(WIO_EMW3166 INTERFACE)
|
||||
|
||||
target_sources(WIO_EMW3166
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(WIO_EMW3166
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(WIO_EMW3166 INTERFACE STM32F412xG)
|
||||
|
|
|
|||
|
|
@ -1,21 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("DISCO_F413ZH" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_DISCO_F413ZH)
|
||||
set(PERIPHERALPINS_FILE TARGET_DISCO_F413ZH/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_DISCO_F413ZH/system_clock.c)
|
||||
elseif("MTS_DRAGONFLY_F413RH" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_MTS_DRAGONFLY_F413RH)
|
||||
set(PERIPHERALPINS_FILE TARGET_MTS_DRAGONFLY_F413RH/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_MTS_DRAGONFLY_F413RH/system_clock.c)
|
||||
|
||||
target_sources(mbed-core INTERFACE TARGET_MTS_DRAGONFLY_F413RH/ONBOARD_TELIT_HE910.cpp)
|
||||
elseif("NUCLEO_F413ZH" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_NUCLEO_F413ZH)
|
||||
set(PERIPHERALPINS_FILE TARGET_NUCLEO_F413ZH/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_NUCLEO_F413ZH/system_clock.c)
|
||||
endif()
|
||||
add_subdirectory(TARGET_DISCO_F413ZH EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_MTS_DRAGONFLY_F413RH EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_NUCLEO_F413ZH EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f413xx.S)
|
||||
|
|
@ -25,16 +13,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f413xh.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F413xH INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F413xH
|
||||
INTERFACE
|
||||
${PERIPHERALPINS_FILE}
|
||||
${STARTUP_FILE}
|
||||
${SYSTEM_CLOCK_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F413xH
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F413xH ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F413xH INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F413ZH INTERFACE)
|
||||
|
||||
target_sources(DISCO_F413ZH
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F413ZH
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F413ZH INTERFACE STM32F413xH)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(MTS_DRAGONFLY_F413RH INTERFACE)
|
||||
|
||||
target_sources(MTS_DRAGONFLY_F413RH
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_TELIT_HE910.cpp
|
||||
)
|
||||
|
||||
target_include_directories(MTS_DRAGONFLY_F413RH
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(MTS_DRAGONFLY_F413RH INTERFACE STM32F413xH)
|
||||
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F413ZH INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F413ZH
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F413ZH
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F413ZH INTERFACE STM32F413xH)
|
||||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("DISCO_F429ZI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_DISCO_F429ZI)
|
||||
elseif("NUCLEO_F429ZI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F429ZI)
|
||||
endif()
|
||||
add_subdirectory(TARGET_DISCO_F429ZI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_NUCLEO_F429ZI EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S)
|
||||
|
|
@ -15,15 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f429xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F429xI INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F429xI
|
||||
INTERFACE
|
||||
system_init_pre.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F429xI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F429xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F429xI INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(DISCO_F429ZI INTERFACE)
|
||||
|
||||
target_sources(DISCO_F429ZI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(DISCO_F429ZI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F429ZI INTERFACE STM32F429xI)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F429ZI INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F429ZI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F429ZI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F429ZI INTERFACE STM32F429xI)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f437xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F437xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F437xG
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F437xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F437xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F437xG INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,21 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F439ZI" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_NUCLEO_F439ZI)
|
||||
set(PERIPHERALPINS_FILE TARGET_NUCLEO_F439ZI/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_NUCLEO_F439ZI/system_clock.c)
|
||||
elseif("WIO_3G" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_WIO_3G)
|
||||
set(PERIPHERALPINS_FILE TARGET_WIO_3G/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_WIO_3G/system_clock.c)
|
||||
target_sources(mbed-core INTERFACE TARGET_WIO_3G/ONBOARD_QUECTEL_UG96.cpp)
|
||||
elseif("WIO_BG96" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core INTERFACE TARGET_WIO_BG96)
|
||||
set(PERIPHERALPINS_FILE TARGET_WIO_BG96/PeripheralPins.c)
|
||||
set(SYSTEM_CLOCK_FILE TARGET_WIO_BG96/system_clock.c)
|
||||
target_sources(mbed-core INTERFACE TARGET_WIO_BG96/ONBOARD_QUECTEL_BG96.cpp)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F439ZI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_WIO_3G EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_WIO_BG96 EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f439xx.S)
|
||||
|
|
@ -25,16 +13,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f439xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F439xI INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F439xI
|
||||
INTERFACE
|
||||
${PERIPHERALPINS_FILE}
|
||||
${STARTUP_FILE}
|
||||
${SYSTEM_CLOCK_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F439xI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F439xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F439xI INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -0,0 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F439ZI INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F439ZI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F439ZI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F439ZI INTERFACE STM32F439xI)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(WIO_3G INTERFACE)
|
||||
|
||||
target_sources(WIO_3G
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_QUECTEL_UG96.cpp
|
||||
)
|
||||
|
||||
target_include_directories(WIO_3G
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(WIO_3G INTERFACE STM32F439xI)
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(WIO_BG96 INTERFACE)
|
||||
|
||||
target_sources(WIO_BG96
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_QUECTEL_BG96.cpp
|
||||
)
|
||||
|
||||
target_include_directories(WIO_BG96
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(WIO_BG96 INTERFACE STM32F439xI)
|
||||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F446RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F446RE)
|
||||
elseif("NUCLEO_F446ZE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F446ZE)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F446RE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_NUCLEO_F446ZE EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S)
|
||||
|
|
@ -15,14 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f446xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F446xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F446xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F446xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F446xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F446xE INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F446RE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F446RE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F446RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F446RE INTERFACE STM32F446xE)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F446ZE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F446ZE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F446ZE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F446ZE INTERFACE STM32F446xE)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("DISCO_F469NI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_DISCO_F469NI)
|
||||
elseif("SDP_K1" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_SDP_K1)
|
||||
endif()
|
||||
add_subdirectory(TARGET_DISCO_F469NI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_SDP_K1 EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f469xx.S)
|
||||
|
|
@ -15,14 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f469xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F469xI INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F469xI
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F469xI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F469xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F469xI INTERFACE STM32F4)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(DISCO_F469NI INTERFACE)
|
||||
|
||||
target_sources(DISCO_F469NI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(DISCO_F469NI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F469NI INTERFACE STM32F469xI)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(SDP_K1 INTERFACE)
|
||||
|
||||
target_sources(SDP_K1
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(SDP_K1
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
target_link_libraries(SDP_K1 INTERFACE STM32F469xI)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,15 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32F746xG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F746xG)
|
||||
elseif("STM32F756xG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F756xG)
|
||||
elseif("STM32F767xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F767xI)
|
||||
elseif("STM32F769xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32F769xI)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32F746xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F756xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F767xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32F769xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F7 INTERFACE)
|
||||
|
||||
target_sources(STM32F7
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -22,9 +20,10 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F7
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F7 INTERFACE STM STM32F7Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32F7Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32F7Cube_FW
|
||||
INTERFACE
|
||||
system_stm32f7xx.c
|
||||
|
||||
|
|
@ -97,7 +99,7 @@ target_sources(mbed-core
|
|||
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F7Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("DISCO_F746NG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_DISCO_F746NG)
|
||||
elseif("NUCLEO_F746ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F746ZG)
|
||||
endif()
|
||||
add_subdirectory(TARGET_DISCO_F746NG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_NUCLEO_F746ZG EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S)
|
||||
|
|
@ -15,14 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f746xg.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F746xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F746xG
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F746xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F746xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F746xG INTERFACE STM32F7)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(DISCO_F746NG INTERFACE)
|
||||
|
||||
target_sources(DISCO_F746NG
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(DISCO_F746NG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F746NG INTERFACE STM32F746xG)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F746ZG INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F746ZG
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F746ZG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F746ZG INTERFACE STM32F746xG)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F756ZG" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F756ZG)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F756ZG EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f756xx.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f756xg.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F756xG INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F756xG
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F756xG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F756xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F756xG INTERFACE STM32F7)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F756ZG INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F756ZG
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F756ZG
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F756ZG INTERFACE STM32F756xG)
|
||||
|
|
|
|||
|
|
@ -1,11 +1,8 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_F767ZI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_F767ZI)
|
||||
elseif("UHURU_RAVEN" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_UHURU_RAVEN)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_F767ZI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_UHURU_RAVEN EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f767xx.S)
|
||||
|
|
@ -15,14 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f767xi.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F767xI INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F767xI
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F767xI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F767xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F767xI INTERFACE STM32F7)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_F767ZI INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F767ZI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_F767ZI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F767ZI INTERFACE STM32F767xI)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(UHURU_RAVEN INTERFACE)
|
||||
|
||||
target_sources(UHURU_RAVEN
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
uhuru_raven_init.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(UHURU_RAVEN
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(UHURU_RAVEN INTERFACE STM32F767xI)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("DISCO_F769NI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_DISCO_F769NI)
|
||||
endif()
|
||||
add_subdirectory(TARGET_DISCO_F769NI EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f769xi.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32F769xI INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32F769xI
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32F769xI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F769xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F769xI INTERFACE STM32F7)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(DISCO_F769NI INTERFACE)
|
||||
|
||||
target_sources(DISCO_F769NI
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(DISCO_F769NI
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F769NI INTERFACE STM32F769xI)
|
||||
|
|
|
|||
|
|
@ -1,21 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32G030xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G030xx)
|
||||
elseif("STM32G031xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G031xx)
|
||||
elseif("STM32G041xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G041xx)
|
||||
elseif("STM32G070xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G070xx)
|
||||
elseif("STM32G071xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G071xx)
|
||||
elseif("STM32G081xx" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G081xx)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32G030xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G031xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G041xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G070xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G071xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G081xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32G0 INTERFACE)
|
||||
|
||||
target_sources(STM32G0
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -26,9 +22,9 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G0
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32G0 INTERFACE STM STM32G0Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32G0Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32G0Cube_FW
|
||||
INTERFACE
|
||||
|
||||
STM32G0xx_HAL_Driver/stm32g0xx_hal.c
|
||||
|
|
@ -69,7 +71,7 @@ target_sources(mbed-core
|
|||
system_stm32g0xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G0Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g030xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G030xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G030xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G030xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G030xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G030xx INTERFACE STM32G0)
|
||||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_G031K8" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_G031K8)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_G031K8 EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g031xx.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g031xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G031xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G031xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G031xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G031xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G031xx INTERFACE STM32G0)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_G031K8 INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G031K8
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_G031K8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G031K8 INTERFACE STM32G031xx)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g041xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G041xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G041xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G041xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G041xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G041xx INTERFACE STM32G0)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g070xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G070xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G070xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G070xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G070xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G070xx INTERFACE STM32G0)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_G071RB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_G071RB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_G071RB EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g071xx.S)
|
||||
|
|
@ -13,14 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g071xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G071xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G071xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G071xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G071xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G071xx INTERFACE STM32G0)
|
||||
|
|
|
|||
|
|
@ -1,13 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_G071RB INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G071RB
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_G071RB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G071RB INTERFACE STM32G071xx)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g081xx.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G081xx INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G081xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G081xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G081xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G081xx INTERFACE STM32G0)
|
||||
|
|
|
|||
|
|
@ -1,23 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32G431xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G431xB)
|
||||
elseif("STM32G441xB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G441xB)
|
||||
elseif("STM32G471xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G471xE)
|
||||
elseif("STM32G473xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G473xE)
|
||||
elseif("STM32G474xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G474xE)
|
||||
elseif("STM32G483xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G483xE)
|
||||
elseif("STM32G484xE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32G484xE)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32G431xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G441xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G471xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G473xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G474xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G483xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32G484xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32G4 INTERFACE)
|
||||
|
||||
target_sources(STM32G4
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -28,9 +23,9 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G4
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32G4 INTERFACE STM STM32G4Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32G4Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32G4Cube_FW
|
||||
INTERFACE
|
||||
STM32G4xx_HAL_Driver/stm32g4xx_hal.c
|
||||
STM32G4xx_HAL_Driver/stm32g4xx_hal_adc.c
|
||||
|
|
@ -89,7 +91,7 @@ target_sources(mbed-core
|
|||
system_stm32g4xx.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G4Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -13,15 +13,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g431xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G431xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G431xB
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G431xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G431xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G431xB INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g441xb.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G441xB INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G441xB
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G441xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G441xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G441xB INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g471xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G471xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G471xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G471xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G471xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G471xE INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g473xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G473xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G473xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G473xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G473xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G473xE INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_G474RE" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_G474RE)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_G474RE EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g474xx.S)
|
||||
|
|
@ -13,15 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g474xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G474xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G474xE
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G474xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G474xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G474xE INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(NUCLEO_G474RE INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G474RE
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(NUCLEO_G474RE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G474RE INTERFACE STM32G474xE)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g483xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G483xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G483xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G483xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G483xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G483xE INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -9,14 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g484xe.sct)
|
||||
endif()
|
||||
|
||||
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
add_library(STM32G484xE INTERFACE)
|
||||
|
||||
target_sources(mbed-core
|
||||
target_sources(STM32G484xE
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32G484xE
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G484xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G484xE INTERFACE STM32G4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,15 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("STM32H743xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H743xI)
|
||||
elseif("STM32H745xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H745xI)
|
||||
elseif("STM32H747xI" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H747xI)
|
||||
elseif("STM32H7A3xIQ" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_STM32H7A3xIQ)
|
||||
endif()
|
||||
add_subdirectory(TARGET_STM32H743xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32H745xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32H747xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32H7A3xIQ EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32H7 INTERFACE)
|
||||
|
||||
target_sources(STM32H7
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -22,9 +20,9 @@ target_sources(mbed-core
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
add_subdirectory(STM32Cube_FW)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32H7
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32H7 INTERFACE STM STM32H7Cube_FW)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(STM32H7Cube_FW INTERFACE)
|
||||
|
||||
target_sources(STM32H7Cube_FW
|
||||
INTERFACE
|
||||
STM32H7xx_HAL_Driver/stm32h7xx_hal.c
|
||||
STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.c
|
||||
|
|
@ -126,7 +128,7 @@ target_sources(mbed-core
|
|||
system_stm32h7xx_singlecore.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(STM32H7Cube_FW
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue