mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #14255 from 0xc0170/cmake-fix-naming-targets
CMake: fix naming targetspull/14269/head
commit
4236db4aef
|
|
@ -128,9 +128,14 @@ add_subdirectory(cmsis/device/rtos EXCLUDE_FROM_ALL)
|
|||
# preventing CMake from working its usage requirements magic and forcing us to set the linker
|
||||
# script globally.
|
||||
#
|
||||
# Ensure the words that make up the Mbed target name are separated with a hyphen, lowercase, and with the `mbed-` prefix.
|
||||
string(TOLOWER ${MBED_TARGET} MBED_TARGET_CONVERTED)
|
||||
string(REPLACE "_" "-" MBED_TARGET_CONVERTED ${MBED_TARGET_CONVERTED})
|
||||
string(PREPEND MBED_TARGET_CONVERTED "mbed-")
|
||||
|
||||
# TODO: Remove when all MBED_TARGETS have been converted to build system targets.
|
||||
if(TARGET ${MBED_TARGET})
|
||||
target_link_libraries(mbed-core INTERFACE ${MBED_TARGET})
|
||||
if(TARGET ${MBED_TARGET_CONVERTED})
|
||||
target_link_libraries(mbed-core INTERFACE ${MBED_TARGET_CONVERTED})
|
||||
else()
|
||||
get_property(LINKER_SCRIPT GLOBAL PROPERTY MBED_TARGET_LINKER_FILE)
|
||||
mbed_set_linker_script(mbed-core ${LINKER_SCRIPT})
|
||||
|
|
|
|||
|
|
@ -17,14 +17,14 @@ add_subdirectory(TARGET_STM32L5 EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32WB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(TARGET_STM32WL EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM INTERFACE)
|
||||
add_library(mbed-stm INTERFACE)
|
||||
|
||||
target_include_directories(STM
|
||||
target_include_directories(mbed-stm
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(STM
|
||||
target_sources(mbed-stm
|
||||
INTERFACE
|
||||
USBPhy_STM32.cpp
|
||||
analogin_api.c
|
||||
|
|
|
|||
|
|
@ -7,14 +7,14 @@ add_subdirectory(TARGET_STM32F070xB EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32F030x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F0 INTERFACE)
|
||||
add_library(mbed-stm32f0 INTERFACE)
|
||||
|
||||
target_include_directories(STM32F0
|
||||
target_include_directories(mbed-stm32f0
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(STM32F0
|
||||
target_sources(mbed-stm32f0
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -26,4 +26,4 @@ target_sources(STM32F0
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F0 INTERFACE STM STM32F0Cube_FW)
|
||||
target_link_libraries(mbed-stm32f0 INTERFACE mbed-stm mbed-stm32f0cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F0Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f0cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F0Cube_FW
|
||||
target_sources(mbed-stm32f0cube-fw
|
||||
INTERFACE
|
||||
STM32F0xx_HAL_Driver/Legacy/stm32f0xx_hal_can_legacy.c
|
||||
STM32F0xx_HAL_Driver/stm32f0xx_hal.c
|
||||
|
|
@ -68,7 +68,7 @@ target_sources(STM32F0Cube_FW
|
|||
system_stm32f0xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F0Cube_FW
|
||||
target_include_directories(mbed-stm32f0cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f030x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F030x8 INTERFACE)
|
||||
add_library(mbed-stm32f030x8 INTERFACE)
|
||||
|
||||
target_sources(STM32F030x8
|
||||
target_sources(mbed-stm32f030x8
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F030x8
|
||||
target_include_directories(mbed-stm32f030x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F030x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f030x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F030x8 INTERFACE STM32F0)
|
||||
target_link_libraries(mbed-stm32f030x8 INTERFACE mbed-stm32f0)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f070xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F070xB INTERFACE)
|
||||
add_library(mbed-stm32f070xb INTERFACE)
|
||||
|
||||
target_sources(STM32F070xB
|
||||
target_sources(mbed-stm32f070xb
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F070xB
|
||||
target_include_directories(mbed-stm32f070xb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F070xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f070xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F070xB INTERFACE STM32F0)
|
||||
target_link_libraries(mbed-stm32f070xb INTERFACE mbed-stm32f0)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F070RB INTERFACE)
|
||||
add_library(mbed-nucleo-f070rb INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F070RB
|
||||
target_sources(mbed-nucleo-f070rb
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F070RB
|
||||
target_include_directories(mbed-nucleo-f070rb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F070RB INTERFACE STM32F070xB)
|
||||
target_link_libraries(mbed-nucleo-f070rb INTERFACE mbed-stm32f070xb)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f072xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F072xB INTERFACE)
|
||||
add_library(mbed-stm32f072xB INTERFACE)
|
||||
|
||||
target_sources(STM32F072xB
|
||||
target_sources(mbed-stm32f072xB
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F072xB
|
||||
target_include_directories(mbed-stm32f072xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F072xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f072xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F072xB INTERFACE STM32F0)
|
||||
target_link_libraries(mbed-stm32f072xB INTERFACE mbed-stm32f0)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F072RB INTERFACE)
|
||||
add_library(mbed-nucleo-f072rb INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F072RB
|
||||
target_sources(mbed-nucleo-f072rb
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F072RB
|
||||
target_include_directories(mbed-nucleo-f072rb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F072RB INTERFACE STM32F072xB)
|
||||
target_link_libraries(mbed-nucleo-f072rb INTERFACE mbed-stm32f072xb)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f091xc.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F091xC INTERFACE)
|
||||
add_library(mbed-stm32f091xc INTERFACE)
|
||||
|
||||
target_sources(STM32F091xC
|
||||
target_sources(mbed-stm32f091xc
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F091xC
|
||||
target_include_directories(mbed-stm32f091xc
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F091xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f091xc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F091xC INTERFACE STM32F0)
|
||||
target_link_libraries(mbed-stm32f091xc INTERFACE mbed-stm32f0)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F091RC INTERFACE)
|
||||
add_library(mbed-nucleo-f091rc INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F091RC
|
||||
target_sources(mbed-nucleo-f091rc
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F091RC
|
||||
target_include_directories(mbed-nucleo-f091rc
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F091RC INTERFACE STM32F091xC)
|
||||
target_link_libraries(mbed-nucleo-f091rc INTERFACE mbed-stm32f091xc)
|
||||
|
|
|
|||
|
|
@ -5,9 +5,9 @@ add_subdirectory(TARGET_STM32F103x8 EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32F103xB EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F1 INTERFACE)
|
||||
add_library(mbed-stm32f1 INTERFACE)
|
||||
|
||||
target_sources(STM32F1
|
||||
target_sources(mbed-stm32f1
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
flash_api.c
|
||||
|
|
@ -17,9 +17,9 @@ target_sources(STM32F1
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F1
|
||||
target_include_directories(mbed-stm32f1
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F1 INTERFACE STM STM32F1Cube_FW)
|
||||
target_link_libraries(mbed-stm32f1 INTERFACE mbed-stm mbed-stm32f1cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F1Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f1cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F1Cube_FW
|
||||
target_sources(mbed-stm32f1cube-fw
|
||||
INTERFACE
|
||||
STM32F1xx_HAL_Driver/Legacy/stm32f1xx_hal_can_legacy.c
|
||||
STM32F1xx_HAL_Driver/stm32f1xx_hal.c
|
||||
|
|
@ -67,7 +67,7 @@ target_sources(STM32F1Cube_FW
|
|||
system_stm32f1xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F1Cube_FW
|
||||
target_include_directories(mbed-stm32f1cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,19 +9,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F103x8 INTERFACE)
|
||||
add_library(mbed-stm32f103x8 INTERFACE)
|
||||
|
||||
target_sources(STM32F103x8
|
||||
target_sources(mbed-stm32f103x8
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F103x8
|
||||
target_include_directories(mbed-stm32f103x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F103x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f103x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F103x8 INTERFACE STM32F1)
|
||||
target_link_libraries(mbed-stm32f103x8 INTERFACE mbed-stm32f1)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F103xB INTERFACE)
|
||||
add_library(mbed-stm32f103xB INTERFACE)
|
||||
|
||||
target_sources(STM32F103xB
|
||||
target_sources(mbed-stm32f103xB
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F103xB
|
||||
target_include_directories(mbed-stm32f103xB
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F103xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f103xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F103xB INTERFACE STM32F1)
|
||||
target_link_libraries(mbed-stm32f103xB INTERFACE mbed-stm32f1)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F103RB INTERFACE)
|
||||
add_library(mbed-nucleo-f103rb INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F103RB
|
||||
target_sources(mbed-nucleo-f103rb
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F103RB
|
||||
target_include_directories(mbed-nucleo-f103rb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F103RB INTERFACE STM32F103xB)
|
||||
target_link_libraries(mbed-nucleo-f103rb INTERFACE mbed-stm32f103xb)
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@
|
|||
add_subdirectory(TARGET_STM32F207xG EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F2 INTERFACE)
|
||||
add_library(mbed-stm32f2 INTERFACE)
|
||||
|
||||
target_sources(STM32F2
|
||||
target_sources(mbed-stm32f2
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -17,7 +17,7 @@ target_sources(STM32F2
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F2
|
||||
target_include_directories(mbed-stm32f2
|
||||
INTERFACE
|
||||
.
|
||||
./STM32Cube_FW
|
||||
|
|
@ -26,4 +26,4 @@ target_include_directories(STM32F2
|
|||
./STM32Cube_FW/STM32F2xx_HAL_Driver/Legacy
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F2 INTERFACE STM STM32F2Cube_FW)
|
||||
target_link_libraries(mbed-stm32f2 INTERFACE mbed-stm mbed-stm32f2cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F2Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f2cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F2Cube_FW
|
||||
target_sources(mbed-stm32f2cube-fw
|
||||
INTERFACE
|
||||
STM32F2xx_HAL_Driver/Legacy/stm32f2xx_hal_can_legacy.c
|
||||
STM32F2xx_HAL_Driver/stm32f2xx_hal.c
|
||||
|
|
@ -73,7 +73,7 @@ target_sources(STM32F2Cube_FW
|
|||
system_stm32f2xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F2Cube_FW
|
||||
target_include_directories(mbed-stm32f2cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xg.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F207xG INTERFACE)
|
||||
add_library(mbed-stm32f207xg INTERFACE)
|
||||
|
||||
target_sources(STM32F207xG
|
||||
target_sources(mbed-stm32f207xg
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F207xG
|
||||
target_include_directories(mbed-stm32f207xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F207xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f207xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F207xG INTERFACE STM32F2)
|
||||
target_link_libraries(mbed-stm32f207xg INTERFACE mbed-stm32f2)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F207ZG INTERFACE)
|
||||
add_library(mbed-nucleo-f207zg INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F207ZG
|
||||
target_sources(mbed-nucleo-f207zg
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F207ZG
|
||||
target_include_directories(mbed-nucleo-f207zg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F207ZG INTERFACE STM32F207xG)
|
||||
target_link_libraries(mbed-nucleo-f207zg INTERFACE mbed-stm32f207xg)
|
||||
|
|
|
|||
|
|
@ -8,14 +8,14 @@ add_subdirectory(TARGET_STM32F303xE EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32F334x8 EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F3 INTERFACE)
|
||||
add_library(mbed-stm32f3 INTERFACE)
|
||||
|
||||
target_include_directories(STM32F3
|
||||
target_include_directories(mbed-stm32f3
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(STM32F3
|
||||
target_sources(mbed-stm32f3
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -26,4 +26,4 @@ target_sources(STM32F3
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F3 INTERFACE STM STM32F3Cube_FW)
|
||||
target_link_libraries(mbed-stm32f3 INTERFACE mbed-stm mbed-stm32f3cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F3Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f3cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F3Cube_FW
|
||||
target_sources(mbed-stm32f3cube-fw
|
||||
INTERFACE
|
||||
STM32F3xx_HAL_Driver/Legacy/stm32f3xx_hal_can_legacy.c
|
||||
STM32F3xx_HAL_Driver/stm32f3xx_hal.c
|
||||
|
|
@ -79,7 +79,7 @@ target_sources(STM32F3Cube_FW
|
|||
system_stm32f3xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F3Cube_FW
|
||||
target_include_directories(mbed-stm32f3cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f302x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F302x8 INTERFACE)
|
||||
add_library(mbed-stm32f302x8 INTERFACE)
|
||||
|
||||
target_include_directories(STM32F302x8
|
||||
target_include_directories(mbed-stm32f302x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F302x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f302x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F302x8 INTERFACE STM32F3)
|
||||
target_link_libraries(mbed-stm32f302x8 INTERFACE mbed-stm32f3)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F303x8 INTERFACE)
|
||||
add_library(mbed-stm32f303x8 INTERFACE)
|
||||
|
||||
target_sources(STM32F303x8
|
||||
target_sources(mbed-stm32f303x8
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F303x8
|
||||
target_include_directories(mbed-stm32f303x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f303x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303x8 INTERFACE STM32F3)
|
||||
target_link_libraries(mbed-stm32f303x8 INTERFACE mbed-stm32f3)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F303K8 INTERFACE)
|
||||
add_library(mbed-nucleo-f303k8 INTERFACE)
|
||||
|
||||
target_include_directories(NUCLEO_F303K8
|
||||
target_include_directories(mbed-nucleo-f303k8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(NUCLEO_F303K8
|
||||
target_sources(mbed-nucleo-f303k8
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303K8 INTERFACE STM32F303x8)
|
||||
target_link_libraries(mbed-nucleo-f303k8 INTERFACE mbed-stm32f303x8)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xc.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F303xC INTERFACE)
|
||||
add_library(mbed-stm32f303xc INTERFACE)
|
||||
|
||||
target_sources(STM32F303xC
|
||||
target_sources(mbed-stm32f303xc
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F303xC
|
||||
target_include_directories(mbed-stm32f303xc
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f303xc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303xC INTERFACE STM32F3)
|
||||
target_link_libraries(mbed-stm32f303xc INTERFACE STM32F3)
|
||||
|
|
|
|||
|
|
@ -12,19 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F303xE INTERFACE)
|
||||
add_library(mbed-stm32f303xe INTERFACE)
|
||||
|
||||
target_sources(STM32F303xE
|
||||
target_sources(mbed-stm32f303xe
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F303xE
|
||||
target_include_directories(mbed-stm32f303xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F303xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f303xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F303xE INTERFACE STM32F3)
|
||||
target_link_libraries(mbed-stm32f303xe INTERFACE mbed-stm32f3)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F303RE INTERFACE)
|
||||
add_library(mbed-nucleo-f303re INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F303RE
|
||||
target_sources(mbed-nucleo-f303re
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F303RE
|
||||
target_include_directories(mbed-nucleo-f303re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303RE INTERFACE STM32F303xE)
|
||||
target_link_libraries(mbed-nucleo-f303re INTERFACE mbed-stm32f303xe)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F303ZE INTERFACE)
|
||||
add_library(mbed-nucleo-f303ze INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F303ZE
|
||||
target_sources(mbed-nucleo-f303ze
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F303ZE
|
||||
target_include_directories(mbed-nucleo-f303ze
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F303ZE INTERFACE STM32F303xE)
|
||||
target_link_libraries(mbed-nucleo-f303ze INTERFACE mbed-stm32f303xe)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f334x8.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F334x8 INTERFACE)
|
||||
add_library(mbed-stm32f334x8 INTERFACE)
|
||||
|
||||
target_sources(STM32F334x8
|
||||
target_sources(mbed-stm32f334x8
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F334x8
|
||||
target_include_directories(mbed-stm32f334x8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F334x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f334x8 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F334x8 INTERFACE STM32F3)
|
||||
target_link_libraries(mbed-stm32f334x8 INTERFACE mbed-stm32f3)
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ add_subdirectory(TARGET_STM32F446xE EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32F469xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F4 INTERFACE)
|
||||
add_library(mbed-stm32f4 INTERFACE)
|
||||
|
||||
target_sources(STM32F4
|
||||
target_sources(mbed-stm32f4
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -31,9 +31,9 @@ target_sources(STM32F4
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F4
|
||||
target_include_directories(mbed-stm32f4
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4 INTERFACE STM STM32F4Cube_FW)
|
||||
target_link_libraries(mbed-stm32f4 INTERFACE mbed-stm mbed-stm32f4cube-fw)
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
add_subdirectory(STM32F4xx_HAL_Driver EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F4Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f4cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F4Cube_FW
|
||||
target_sources(mbed-stm32f4cube-fw
|
||||
INTERFACE
|
||||
system_stm32f4xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F4Cube_FW
|
||||
target_include_directories(mbed-stm32f4cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
./CMSIS
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4Cube_FW INTERFACE STM32F4xx_HAL_Driver)
|
||||
target_link_libraries(mbed-stm32f4cube-fw INTERFACE mbed-stm32f4xx-hal-driver)
|
||||
|
|
|
|||
|
|
@ -3,9 +3,9 @@
|
|||
|
||||
add_subdirectory(Legacy EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F4xx_HAL_Driver INTERFACE)
|
||||
add_library(mbed-stm32f4xx-hal-driver INTERFACE)
|
||||
|
||||
target_sources(STM32F4xx_HAL_Driver
|
||||
target_sources(mbed-stm32f4xx-hal-driver
|
||||
INTERFACE
|
||||
stm32f4xx_hal.c
|
||||
stm32f4xx_hal_adc.c
|
||||
|
|
@ -98,9 +98,9 @@ target_sources(STM32F4xx_HAL_Driver
|
|||
stm32f4xx_ll_utils.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F4xx_HAL_Driver
|
||||
target_include_directories(mbed-stm32f4xx-hal-driver
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F4xx_HAL_Driver INTERFACE STM32F4xxLegacyHAL)
|
||||
target_link_libraries(mbed-stm32f4xx-hal-driver INTERFACE mbed-stm32f4xx-legacy-hal)
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F4xxLegacyHAL INTERFACE)
|
||||
add_library(mbed-stm32f4xx-legacy-hal INTERFACE)
|
||||
|
||||
target_sources(STM32F4xxLegacyHAL
|
||||
target_sources(mbed-stm32f4xx-legacy-hal
|
||||
INTERFACE
|
||||
stm32f4xx_hal_can_legacy.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32F4xxLegacyHAL
|
||||
target_include_directories(mbed-stm32f4xx-legacy-hal
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
add_library(MTS_DRAGONFLY_F411RE INTERFACE)
|
||||
add_library(mbed-mts-dragonfly-f411re INTERFACE)
|
||||
|
||||
target_sources(MTS_DRAGONFLY_F411RE
|
||||
target_sources(mbed-mts-dragonfly-f411re
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
ONBOARD_TELIT_HE910.cpp
|
||||
|
|
@ -19,11 +19,11 @@ target_sources(MTS_DRAGONFLY_F411RE
|
|||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(MTS_DRAGONFLY_F411RE
|
||||
target_include_directories(mbed-mts-dragonfly-f411re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(MTS_DRAGONFLY_F411RE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-mts-dragonfly-f411re ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(MTS_DRAGONFLY_F411RE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-mts-dragonfly-f411re INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -9,20 +9,20 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
add_library(MTS_MDOT_F411RE INTERFACE)
|
||||
add_library(mbed-mts-mdot-f411re INTERFACE)
|
||||
|
||||
target_sources(MTS_MDOT_F411RE
|
||||
target_sources(mbed-mts-mdot-f411re
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
PeripheralPins.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(MTS_MDOT_F411RE
|
||||
target_include_directories(mbed-mts-mdot-f411re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(MTS_MDOT_F411RE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-mts-mdot-f411re ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(MTS_MDOT_F411RE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-mts-mdot-f411re INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -6,20 +6,20 @@ if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XC.ld)
|
||||
endif()
|
||||
|
||||
add_library(STM32F401xC INTERFACE)
|
||||
add_library(mbed-stm32f401xc INTERFACE)
|
||||
|
||||
target_sources(STM32F401xC
|
||||
target_sources(mbed-stm32f401xc
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
PeripheralPins.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F401xC
|
||||
target_include_directories(mbed-stm32f401xc
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F401xC ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f401xc ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F401xC INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f401xc INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f401xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F401xE INTERFACE)
|
||||
add_library(mbed-stm32f401xe INTERFACE)
|
||||
|
||||
target_sources(STM32F401xE
|
||||
target_sources(mbed-stm32f401xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F401xE
|
||||
target_include_directories(mbed-stm32f401xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F401xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f401xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F401xE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f401xe INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F401RE INTERFACE)
|
||||
add_library(mbed-nucleo-f401re INTERFACE)
|
||||
|
||||
target_include_directories(NUCLEO_F401RE
|
||||
target_include_directories(mbed-nucleo-f401re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_sources(NUCLEO_F401RE
|
||||
target_sources(mbed-nucleo-f401re
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F401RE INTERFACE STM32F401xE)
|
||||
target_link_libraries(mbed-nucleo-f401re INTERFACE mbed-stm32f401xe)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/STM32F407xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F407xE INTERFACE)
|
||||
add_library(mbed-stm32f407xe INTERFACE)
|
||||
|
||||
target_sources(STM32F407xE
|
||||
target_sources(mbed-stm32f407xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F407xE
|
||||
target_include_directories(mbed-stm32f407xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F407xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f407xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F407xE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f407xe INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(ARCH_MAX INTERFACE)
|
||||
add_library(mbed-arch-max INTERFACE)
|
||||
|
||||
target_sources(ARCH_MAX
|
||||
target_sources(mbed-arch-max
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(ARCH_MAX
|
||||
target_include_directories(mbed-arch-max
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(ARCH_MAX INTERFACE STM32F407xE)
|
||||
target_link_libraries(mbed-arch-max INTERFACE mbed-stm32f407xe)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/STM32F407xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F407xG INTERFACE)
|
||||
add_library(mbed-stm32f407xg INTERFACE)
|
||||
|
||||
target_sources(STM32F407xG
|
||||
target_sources(mbed-stm32f407xg
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F407xG
|
||||
target_include_directories(mbed-stm32f407xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F407xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f407xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F407xG INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f407xg INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f410xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F410xB INTERFACE)
|
||||
add_library(mbed-stm32f410xb INTERFACE)
|
||||
|
||||
target_sources(STM32F410xB
|
||||
target_sources(mbed-stm32f410xb
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F410xB
|
||||
target_include_directories(mbed-stm32f410xb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F410xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f410xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F410xB INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f410xb INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F411xE INTERFACE)
|
||||
add_library(mbed-stm32f411xe INTERFACE)
|
||||
|
||||
target_sources(STM32F411xE
|
||||
target_sources(mbed-stm32f411xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F411xE
|
||||
target_include_directories(mbed-stm32f411xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F411xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f411xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F411xE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f411xe INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F411RE INTERFACE)
|
||||
add_library(mbed-nucleo-f411re INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F411RE
|
||||
target_sources(mbed-nucleo-f411re
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F411RE
|
||||
target_include_directories(mbed-nucleo-f411re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F411RE INTERFACE STM32F411xE)
|
||||
target_link_libraries(mbed-nucleo-f411re INTERFACE mbed-stm32f411xe)
|
||||
|
|
|
|||
|
|
@ -12,19 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f412xg.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F412xG INTERFACE)
|
||||
add_library(mbed-stm32f412xg INTERFACE)
|
||||
|
||||
target_sources(STM32F412xG
|
||||
target_sources(mbed-stm32f412xg
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F412xG
|
||||
target_include_directories(mbed-stm32f412xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F412xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f412xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F412xG INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f412xg INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F412ZG INTERFACE)
|
||||
add_library(mbed-nucleo-f412zg INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F412ZG
|
||||
target_sources(mbed-nucleo-f412zg
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F412ZG
|
||||
target_include_directories(mbed-nucleo-f412zg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F412ZG INTERFACE STM32F412xG)
|
||||
target_link_libraries(mbed-nucleo-f412zg INTERFACE mbed-stm32f412xg)
|
||||
|
|
|
|||
|
|
@ -13,18 +13,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f413xh.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F413xH INTERFACE)
|
||||
add_library(mbed-stm32f413xh INTERFACE)
|
||||
|
||||
target_sources(STM32F413xH
|
||||
target_sources(mbed-stm32f413xh
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F413xH
|
||||
target_include_directories(mbed-stm32f413xh
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F413xH ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f413xh ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F413xH INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f413xh INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F413ZH INTERFACE)
|
||||
add_library(mbed-disco-f413zh INTERFACE)
|
||||
|
||||
target_sources(DISCO_F413ZH
|
||||
target_sources(mbed-disco-f413zh
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F413ZH
|
||||
target_include_directories(mbed-disco-f413zh
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F413ZH INTERFACE STM32F413xH)
|
||||
target_link_libraries(mbed-disco-f413zh INTERFACE mbed-stm32f413xh)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(MTS_DRAGONFLY_F413RH INTERFACE)
|
||||
add_library(mbed-mts-dragonfly-f413rh INTERFACE)
|
||||
|
||||
target_sources(MTS_DRAGONFLY_F413RH
|
||||
target_sources(mbed-mts-dragonfly-f413rh
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_TELIT_HE910.cpp
|
||||
)
|
||||
|
||||
target_include_directories(MTS_DRAGONFLY_F413RH
|
||||
target_include_directories(mbed-mts-dragonfly-f413rh
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(MTS_DRAGONFLY_F413RH INTERFACE STM32F413xH)
|
||||
target_link_libraries(mbed-mts-dragonfly-f413rh INTERFACE mbed-stm32f413xh)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F413ZH INTERFACE)
|
||||
add_library(mbed-nucleo-f413zh INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F413ZH
|
||||
target_sources(mbed-nucleo-f413zh
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F413ZH
|
||||
target_include_directories(mbed-nucleo-f413zh
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F413ZH INTERFACE STM32F413xH)
|
||||
target_link_libraries(mbed-nucleo-f413zh INTERFACE mbed-stm32f413xh)
|
||||
|
|
|
|||
|
|
@ -12,19 +12,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f429xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F429xI INTERFACE)
|
||||
add_library(mbed-stm32f429xi INTERFACE)
|
||||
|
||||
target_sources(STM32F429xI
|
||||
target_sources(mbed-stm32f429xi
|
||||
INTERFACE
|
||||
system_init_pre.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F429xI
|
||||
target_include_directories(mbed-stm32f429xi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F429xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f429xi ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F429xI INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f429xi INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F429ZI INTERFACE)
|
||||
add_library(mbed-disco-f429zi INTERFACE)
|
||||
|
||||
target_sources(DISCO_F429ZI
|
||||
target_sources(mbed-disco-f429zi
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F429ZI
|
||||
target_include_directories(mbed-disco-f429zi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F429ZI INTERFACE STM32F429xI)
|
||||
target_link_libraries(mbed-disco-f429zi INTERFACE mbed-stm32f429xi)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F429ZI INTERFACE)
|
||||
add_library(mbed-nucleo-f429zi INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F429ZI
|
||||
target_sources(mbed-nucleo-f429zi
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F429ZI
|
||||
target_include_directories(mbed-nucleo-f429zi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F429ZI INTERFACE STM32F429xI)
|
||||
target_link_libraries(mbed-nucleo-f429zi INTERFACE mbed-stm32f429xi)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f437xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F437xG INTERFACE)
|
||||
add_library(mbed-stm32f437xg INTERFACE)
|
||||
|
||||
target_sources(STM32F437xG
|
||||
target_sources(mbed-stm32f437xg
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F437xG
|
||||
target_include_directories(mbed-stm32f437xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F437xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f437xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F437xG INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f437xg INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -13,18 +13,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f439xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F439xI INTERFACE)
|
||||
add_library(mbed-stm32f439xi INTERFACE)
|
||||
|
||||
target_sources(STM32F439xI
|
||||
target_sources(mbed-stm32f439xi
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F439xI
|
||||
target_include_directories(mbed-stm32f439xi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F439xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f439xi ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F439xI INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f439xi INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F439ZI INTERFACE)
|
||||
add_library(mbed-nucleo-f439zi INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F439ZI
|
||||
target_sources(mbed-nucleo-f439zi
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F439ZI
|
||||
target_include_directories(mbed-nucleo-f439zi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F439ZI INTERFACE STM32F439xI)
|
||||
target_link_libraries(mbed-nucleo-f439zi INTERFACE mbed-stm32f439xi)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(WIO_3G INTERFACE)
|
||||
add_library(mbed-wio-3g INTERFACE)
|
||||
|
||||
target_sources(WIO_3G
|
||||
target_sources(mbed-wio-3g
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_QUECTEL_UG96.cpp
|
||||
)
|
||||
|
||||
target_include_directories(WIO_3G
|
||||
target_include_directories(mbed-wio-3g
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(WIO_3G INTERFACE STM32F439xI)
|
||||
target_link_libraries(mbed-wio-3g INTERFACE mbed-stm32f439xi)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
# Copyright (c) 2021 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(WIO_BG96 INTERFACE)
|
||||
add_library(mbed-wio-bg96 INTERFACE)
|
||||
|
||||
target_sources(WIO_BG96
|
||||
target_sources(mbed-wio-bg96
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
ONBOARD_QUECTEL_BG96.cpp
|
||||
)
|
||||
|
||||
target_include_directories(WIO_BG96
|
||||
target_include_directories(mbed-wio-bg96
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(WIO_BG96 INTERFACE STM32F439xI)
|
||||
target_link_libraries(mbed-wio-bg96 INTERFACE mbed-stm32f439xi)
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f446xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F446xE INTERFACE)
|
||||
add_library(mbed-stm32f446xe INTERFACE)
|
||||
|
||||
target_sources(STM32F446xE
|
||||
target_sources(mbed-stm32f446xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F446xE
|
||||
target_include_directories(mbed-stm32f446xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F446xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f446xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F446xE INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f446xe INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F446RE INTERFACE)
|
||||
add_library(mbed-nucleo-f446re INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F446RE
|
||||
target_sources(mbed-nucleo-f446re
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F446RE
|
||||
target_include_directories(mbed-nucleo-f446re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F446RE INTERFACE STM32F446xE)
|
||||
target_link_libraries(mbed-nucleo-f446re INTERFACE mbed-stm32f446xe)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F446ZE INTERFACE)
|
||||
add_library(mbed-nucleo-f446ze INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F446ZE
|
||||
target_sources(mbed-nucleo-f446ze
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F446ZE
|
||||
target_include_directories(mbed-nucleo-f446ze
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F446ZE INTERFACE STM32F446xE)
|
||||
target_link_libraries(mbed-nucleo-f446ze INTERFACE mbed-stm32f446xe)
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f469xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F469xI INTERFACE)
|
||||
add_library(mbed-stm32f469xi INTERFACE)
|
||||
|
||||
target_sources(STM32F469xI
|
||||
target_sources(mbed-stm32f469xi
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F469xI
|
||||
target_include_directories(mbed-stm32f469xi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F469xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f469xi ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F469xI INTERFACE STM32F4)
|
||||
target_link_libraries(mbed-stm32f469xi INTERFACE mbed-stm32f4)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F469NI INTERFACE)
|
||||
add_library(mbed-disco-f469ni INTERFACE)
|
||||
|
||||
target_sources(DISCO_F469NI
|
||||
target_sources(mbed-disco-f469ni
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F469NI
|
||||
target_include_directories(mbed-disco-f469ni
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F469NI INTERFACE STM32F469xI)
|
||||
target_link_libraries(mbed-disco-f469ni INTERFACE mbed-stm32f469xi)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(SDP_K1 INTERFACE)
|
||||
add_library(mbed-sdp-k1 INTERFACE)
|
||||
|
||||
target_sources(SDP_K1
|
||||
target_sources(mbed-sdp-k1
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(SDP_K1
|
||||
target_include_directories(mbed-sdp-k1
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
target_link_libraries(SDP_K1 INTERFACE STM32F469xI)
|
||||
target_link_libraries(mbed-sdp-k1 INTERFACE mbed-stm32f469xi)
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ add_subdirectory(TARGET_STM32F767xI EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32F769xI EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32F7 INTERFACE)
|
||||
add_library(mbed-stm32f7 INTERFACE)
|
||||
|
||||
target_sources(STM32F7
|
||||
target_sources(mbed-stm32f7
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -21,9 +21,9 @@ target_sources(STM32F7
|
|||
)
|
||||
|
||||
|
||||
target_include_directories(STM32F7
|
||||
target_include_directories(mbed-stm32f7
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32F7 INTERFACE STM STM32F7Cube_FW)
|
||||
target_link_libraries(mbed-stm32f7 INTERFACE mbed-stm mbed-stm32f7cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32F7Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32f7cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32F7Cube_FW
|
||||
target_sources(mbed-stm32f7cube-fw
|
||||
INTERFACE
|
||||
system_stm32f7xx.c
|
||||
|
||||
|
|
@ -99,7 +99,7 @@ target_sources(STM32F7Cube_FW
|
|||
|
||||
)
|
||||
|
||||
target_include_directories(STM32F7Cube_FW
|
||||
target_include_directories(mbed-stm32f7cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f746xg.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F746xG INTERFACE)
|
||||
add_library(mbed-stm32f746xg INTERFACE)
|
||||
|
||||
target_sources(STM32F746xG
|
||||
target_sources(mbed-stm32f746xg
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F746xG
|
||||
target_include_directories(mbed-stm32f746xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F746xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f746xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F746xG INTERFACE STM32F7)
|
||||
target_link_libraries(mbed-stm32f746xg INTERFACE mbed-stm32f7)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F746NG INTERFACE)
|
||||
add_library(mbed-disco-f746ng INTERFACE)
|
||||
|
||||
target_sources(DISCO_F746NG
|
||||
target_sources(mbed-disco-f746ng
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F746NG
|
||||
target_include_directories(mbed-disco-f746ng
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F746NG INTERFACE STM32F746xG)
|
||||
target_link_libraries(mbed-disco-f746ng INTERFACE mbed-stm32f746xg)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F746ZG INTERFACE)
|
||||
add_library(mbed-nucleo-f746zg INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F746ZG
|
||||
target_sources(mbed-nucleo-f746zg
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F746ZG
|
||||
target_include_directories(mbed-nucleo-f746zg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F746ZG INTERFACE STM32F746xG)
|
||||
target_link_libraries(mbed-nucleo-f746zg INTERFACE mbed-stm32f746xg)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f756xg.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F756xG INTERFACE)
|
||||
add_library(mbed-stm32f756xg INTERFACE)
|
||||
|
||||
target_sources(STM32F756xG
|
||||
target_sources(mbed-stm32f756xg
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F756xG
|
||||
target_include_directories(mbed-stm32f756xg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F756xG ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f756xg ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F756xG INTERFACE STM32F7)
|
||||
target_link_libraries(mbed-stm32f756xg INTERFACE mbed-stm32f7)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F756ZG INTERFACE)
|
||||
add_library(mbed-nucleo-f756zg INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F756ZG
|
||||
target_sources(mbed-nucleo-f756zg
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F756ZG
|
||||
target_include_directories(mbed-nucleo-f756zg
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F756ZG INTERFACE STM32F756xG)
|
||||
target_link_libraries(mbed-nucleo-f756zg INTERFACE mbed-stm32f756xg)
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f767xi.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F767xI INTERFACE)
|
||||
add_library(mbed-stm32f767xi INTERFACE)
|
||||
|
||||
target_sources(STM32F767xI
|
||||
target_sources(mbed-stm32f767xi
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F767xI
|
||||
target_include_directories(mbed-stm32f767xi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F767xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f767xi ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F767xI INTERFACE STM32F7)
|
||||
target_link_libraries(mbed-stm32f767xi INTERFACE mbed-stm32f7)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_F767ZI INTERFACE)
|
||||
add_library(mbed-nucleo-f767zi INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_F767ZI
|
||||
target_sources(mbed-nucleo-f767zi
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_F767ZI
|
||||
target_include_directories(mbed-nucleo-f767zi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_F767ZI INTERFACE STM32F767xI)
|
||||
target_link_libraries(mbed-nucleo-f767zi INTERFACE mbed-stm32f767xi)
|
||||
|
|
|
|||
|
|
@ -1,18 +1,18 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(UHURU_RAVEN INTERFACE)
|
||||
add_library(mbed-uhuru-raven INTERFACE)
|
||||
|
||||
target_sources(UHURU_RAVEN
|
||||
target_sources(mbed-uhuru-raven
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
uhuru_raven_init.c
|
||||
)
|
||||
|
||||
target_include_directories(UHURU_RAVEN
|
||||
target_include_directories(mbed-uhuru-raven
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(UHURU_RAVEN INTERFACE STM32F767xI)
|
||||
target_link_libraries(mbed-uhuru-raven INTERFACE mbed-stm32f767xi)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32f769xi.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32F769xI INTERFACE)
|
||||
add_library(mbed-stm32f769xi INTERFACE)
|
||||
|
||||
target_sources(STM32F769xI
|
||||
target_sources(mbed-stm32f769xi
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32F769xI
|
||||
target_include_directories(mbed-stm32f769xi
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32F769xI ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32f769xi ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32F769xI INTERFACE STM32F7)
|
||||
target_link_libraries(mbed-stm32f769xi INTERFACE mbed-stm32f7)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(DISCO_F769NI INTERFACE)
|
||||
add_library(mbed-disco-f769ni INTERFACE)
|
||||
|
||||
target_sources(DISCO_F769NI
|
||||
target_sources(mbed-disco-f769ni
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(DISCO_F769NI
|
||||
target_include_directories(mbed-disco-f769ni
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(DISCO_F769NI INTERFACE STM32F769xI)
|
||||
target_link_libraries(mbed-disco-f769ni INTERFACE mbed-stm32f769xi)
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ add_subdirectory(TARGET_STM32G071xx EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32G081xx EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32G0 INTERFACE)
|
||||
add_library(mbed-stm32g0 INTERFACE)
|
||||
|
||||
target_sources(STM32G0
|
||||
target_sources(mbed-stm32g0
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -22,9 +22,9 @@ target_sources(STM32G0
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32G0
|
||||
target_include_directories(mbed-stm32g0
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32G0 INTERFACE STM STM32G0Cube_FW)
|
||||
target_link_libraries(mbed-stm32g0 INTERFACE mbed-stm mbed-stm32g0cube-few)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32G0Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32g0cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32G0Cube_FW
|
||||
target_sources(mbed-stm32g0cube-fw
|
||||
INTERFACE
|
||||
|
||||
STM32G0xx_HAL_Driver/stm32g0xx_hal.c
|
||||
|
|
@ -71,7 +71,7 @@ target_sources(STM32G0Cube_FW
|
|||
system_stm32g0xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32G0Cube_FW
|
||||
target_include_directories(mbed-stm32g0cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g030xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G030xx INTERFACE)
|
||||
add_library(mbed-stm32g030xx INTERFACE)
|
||||
|
||||
target_sources(STM32G030xx
|
||||
target_sources(mbed-stm32g030xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G030xx
|
||||
target_include_directories(mbed-stm32g030xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G030xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g030xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G030xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g030xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g031xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G031xx INTERFACE)
|
||||
add_library(mbed-stm32g031xx INTERFACE)
|
||||
|
||||
target_sources(STM32G031xx
|
||||
target_sources(mbed-stm32g031xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G031xx
|
||||
target_include_directories(mbed-stm32g031xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G031xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g031xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G031xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g031xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_G031K8 INTERFACE)
|
||||
add_library(mbed-nucleo-g031k8 INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G031K8
|
||||
target_sources(mbed-nucleo-g031k8
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_G031K8
|
||||
target_include_directories(mbed-nucleo-g031k8
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G031K8 INTERFACE STM32G031xx)
|
||||
target_link_libraries(mbed-nucleo-g031k8 INTERFACE mbed-stm32g031xx)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g041xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G041xx INTERFACE)
|
||||
add_library(mbed-stm32g041xx INTERFACE)
|
||||
|
||||
target_sources(STM32G041xx
|
||||
target_sources(mbed-stm32g041xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G041xx
|
||||
target_include_directories(mbed-stm32g041xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G041xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g041xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G041xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g041xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g070xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G070xx INTERFACE)
|
||||
add_library(mbed-stm32g070xx INTERFACE)
|
||||
|
||||
target_sources(STM32G070xx
|
||||
target_sources(mbed-stm32g070xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G070xx
|
||||
target_include_directories(mbed-stm32g070xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G070xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g070xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G070xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g070xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -11,18 +11,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g071xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G071xx INTERFACE)
|
||||
add_library(mbed-stm32g071xx INTERFACE)
|
||||
|
||||
target_sources(STM32G071xx
|
||||
target_sources(mbed-stm32g071xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G071xx
|
||||
target_include_directories(mbed-stm32g071xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G071xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g071xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G071xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g071xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_G071RB INTERFACE)
|
||||
add_library(mbed-nucleo-g071rb INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G071RB
|
||||
target_sources(mbed-nucleo-g071rb
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
system_clock.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_G071RB
|
||||
target_include_directories(mbed-nucleo-g071rb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G071RB INTERFACE STM32G071xx)
|
||||
target_link_libraries(mbed-nucleo-g071rb INTERFACE mbed-stm32g071xx)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g081xx.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G081xx INTERFACE)
|
||||
add_library(mbed-stm32g081xx INTERFACE)
|
||||
|
||||
target_sources(STM32G081xx
|
||||
target_sources(mbed-stm32g081xx
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G081xx
|
||||
target_include_directories(mbed-stm32g081xx
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G081xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g081xx ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G081xx INTERFACE STM32G0)
|
||||
target_link_libraries(mbed-stm32g081xx INTERFACE mbed-stm32g0)
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@ add_subdirectory(TARGET_STM32G483xE EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32G484xE EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32G4 INTERFACE)
|
||||
add_library(mbed-stm32g4 INTERFACE)
|
||||
|
||||
target_sources(STM32G4
|
||||
target_sources(mbed-stm32g4
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -23,9 +23,9 @@ target_sources(STM32G4
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32G4
|
||||
target_include_directories(mbed-stm32g4
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32G4 INTERFACE STM STM32G4Cube_FW)
|
||||
target_link_libraries(mbed-stm32g4 INTERFACE mbed-stm mbed-stm32g4cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32G4Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32g4cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32G4Cube_FW
|
||||
target_sources(mbed-stm32g4cube-fw
|
||||
INTERFACE
|
||||
STM32G4xx_HAL_Driver/stm32g4xx_hal.c
|
||||
STM32G4xx_HAL_Driver/stm32g4xx_hal_adc.c
|
||||
|
|
@ -91,7 +91,7 @@ target_sources(STM32G4Cube_FW
|
|||
system_stm32g4xx.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32G4Cube_FW
|
||||
target_include_directories(mbed-stm32g4cube-fw
|
||||
INTERFACE
|
||||
.
|
||||
CMSIS
|
||||
|
|
|
|||
|
|
@ -1,9 +1,7 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("NUCLEO_G431KB" IN_LIST MBED_TARGET_LABELS)
|
||||
add_subdirectory(TARGET_NUCLEO_G431KB)
|
||||
endif()
|
||||
add_subdirectory(TARGET_NUCLEO_G431KB EXCLUDE_FROM_ALL)
|
||||
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g431xx.S)
|
||||
|
|
@ -13,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g431xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G431xB INTERFACE)
|
||||
add_library(mbed-stm32g431xb INTERFACE)
|
||||
|
||||
target_sources(STM32G431xB
|
||||
target_sources(mbed-stm32g431xb
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G431xB
|
||||
target_include_directories(mbed-stm32g431xb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G431xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g431xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G431xB INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g431xb INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -1,12 +1,14 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
target_sources(mbed-core
|
||||
add_library(mbed-nucleo-g431kb INTERFACE)
|
||||
|
||||
target_sources(mbed-nucleo-g431kb
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
target_include_directories(mbed-nucleo-g431kb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g441xb.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G441xB INTERFACE)
|
||||
add_library(mbed-stm32g441xb INTERFACE)
|
||||
|
||||
target_sources(STM32G441xB
|
||||
target_sources(mbed-stm32g441xb
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G441xB
|
||||
target_include_directories(mbed-stm32g441xb
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G441xB ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g441xb ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G441xB INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g441xb INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g471xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G471xE INTERFACE)
|
||||
add_library(mbed-stm32g471xe INTERFACE)
|
||||
|
||||
target_sources(STM32G471xE
|
||||
target_sources(mbed-stm32g471xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G471xE
|
||||
target_include_directories(mbed-stm32g471xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G471xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g471xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G471xE INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g471xe INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g473xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G473xE INTERFACE)
|
||||
add_library(mbed-stm32g473xe INTERFACE)
|
||||
|
||||
target_sources(STM32G473xE
|
||||
target_sources(mbed-stm32g473xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G473xE
|
||||
target_include_directories(mbed-stm32g473xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G473xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g473xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G473xE INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g473xe INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -11,19 +11,19 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g474xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G474xE INTERFACE)
|
||||
add_library(mbed-stm32g474xe INTERFACE)
|
||||
|
||||
target_sources(STM32G474xE
|
||||
target_sources(mbed-stm32g474xe
|
||||
INTERFACE
|
||||
system_clock.c
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G474xE
|
||||
target_include_directories(mbed-stm32g474xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G474xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g474xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G474xE INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g474xe INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -1,16 +1,16 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(NUCLEO_G474RE INTERFACE)
|
||||
add_library(mbed-nucleo-g474re INTERFACE)
|
||||
|
||||
target_sources(NUCLEO_G474RE
|
||||
target_sources(mbed-nucleo-g474re
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
)
|
||||
|
||||
target_include_directories(NUCLEO_G474RE
|
||||
target_include_directories(mbed-nucleo-g474re
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(NUCLEO_G474RE INTERFACE STM32G474xE)
|
||||
target_link_libraries(mbed-nucleo-g474re INTERFACE mbed-stm32g474xe)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g483xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G483xE INTERFACE)
|
||||
add_library(mbed-stm32g483xe INTERFACE)
|
||||
|
||||
target_sources(STM32G483xE
|
||||
target_sources(mbed-stm32g483xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G483xE
|
||||
target_include_directories(mbed-stm32g483xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G483xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g483xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G483xE INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g483xe INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -9,18 +9,18 @@ elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
|||
set(LINKER_FILE TOOLCHAIN_ARM/stm32g484xe.sct)
|
||||
endif()
|
||||
|
||||
add_library(STM32G484xE INTERFACE)
|
||||
add_library(mbed-stm32g484xe INTERFACE)
|
||||
|
||||
target_sources(STM32G484xE
|
||||
target_sources(mbed-stm32g484xe
|
||||
INTERFACE
|
||||
${STARTUP_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(STM32G484xE
|
||||
target_include_directories(mbed-stm32g484xe
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
mbed_set_linker_script(STM32G484xE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
mbed_set_linker_script(mbed-stm32g484xe ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
|
||||
|
||||
target_link_libraries(STM32G484xE INTERFACE STM32G4)
|
||||
target_link_libraries(mbed-stm32g484xe INTERFACE mbed-stm32g4)
|
||||
|
|
|
|||
|
|
@ -7,9 +7,9 @@ add_subdirectory(TARGET_STM32H747xI EXCLUDE_FROM_ALL)
|
|||
add_subdirectory(TARGET_STM32H7A3xIQ EXCLUDE_FROM_ALL)
|
||||
add_subdirectory(STM32Cube_FW EXCLUDE_FROM_ALL)
|
||||
|
||||
add_library(STM32H7 INTERFACE)
|
||||
add_library(mbed-stm32h7 INTERFACE)
|
||||
|
||||
target_sources(STM32H7
|
||||
target_sources(mbed-stm32h7
|
||||
INTERFACE
|
||||
analogin_device.c
|
||||
analogout_device.c
|
||||
|
|
@ -20,9 +20,9 @@ target_sources(STM32H7
|
|||
spi_api.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32H7
|
||||
target_include_directories(mbed-stm32h7
|
||||
INTERFACE
|
||||
.
|
||||
)
|
||||
|
||||
target_link_libraries(STM32H7 INTERFACE STM STM32H7Cube_FW)
|
||||
target_link_libraries(mbed-stm32h7 INTERFACE mbed-stm mbed-stm32h7cube-fw)
|
||||
|
|
|
|||
|
|
@ -1,9 +1,9 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
add_library(STM32H7Cube_FW INTERFACE)
|
||||
add_library(mbed-stm32h7cube-fw INTERFACE)
|
||||
|
||||
target_sources(STM32H7Cube_FW
|
||||
target_sources(mbed-stm32h7cube-fw
|
||||
INTERFACE
|
||||
STM32H7xx_HAL_Driver/stm32h7xx_hal.c
|
||||
STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.c
|
||||
|
|
@ -128,7 +128,7 @@ target_sources(STM32H7Cube_FW
|
|||
system_stm32h7xx_singlecore.c
|
||||
)
|
||||
|
||||
target_include_directories(STM32H7Cube_FW
|
||||
target_include_directories(mbed-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