Merge pull request #13915 from 0xc0170/cmake-stm32

CMake: add all TARGET_STM targets
pull/13957/head
Martin Kojtal 2020-11-24 14:09:28 +00:00 committed by GitHub
commit a1fc9cdad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
154 changed files with 3860 additions and 147 deletions

View File

@ -1,12 +1,34 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("STM32F3" IN_LIST MBED_TARGET_LABELS)
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()
target_include_directories(mbed-core

View File

@ -0,0 +1,85 @@
# 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("NUCLEO_F070RB" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F070RB)
elseif("NUCLEO_F072RB" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F072RB)
endif()
target_sources(mbed-core
INTERFACE
analogin_device.c
analogout_device.c
flash_api.c
gpio_irq_device.c
pwmout_device.c
serial_device.c
spi_api.c
device/stm32f0xx_hal.c
device/stm32f0xx_hal_adc.c
device/stm32f0xx_hal_adc_ex.c
device/stm32f0xx_hal_can.c
device/stm32f0xx_hal_cec.c
device/stm32f0xx_hal_comp.c
device/stm32f0xx_hal_cortex.c
device/stm32f0xx_hal_crc.c
device/stm32f0xx_hal_crc_ex.c
device/stm32f0xx_hal_dac.c
device/stm32f0xx_hal_dac_ex.c
device/stm32f0xx_hal_dma.c
device/stm32f0xx_hal_flash.c
device/stm32f0xx_hal_flash_ex.c
device/stm32f0xx_hal_gpio.c
device/stm32f0xx_hal_i2c.c
device/stm32f0xx_hal_i2c_ex.c
device/stm32f0xx_hal_i2s.c
device/stm32f0xx_hal_irda.c
device/stm32f0xx_hal_iwdg.c
device/stm32f0xx_hal_pcd.c
device/stm32f0xx_hal_pcd_ex.c
device/stm32f0xx_hal_pwr.c
device/stm32f0xx_hal_pwr_ex.c
device/stm32f0xx_hal_rcc.c
device/stm32f0xx_hal_rcc_ex.c
device/stm32f0xx_hal_rtc.c
device/stm32f0xx_hal_rtc_ex.c
device/stm32f0xx_hal_smartcard.c
device/stm32f0xx_hal_smartcard_ex.c
device/stm32f0xx_hal_smbus.c
device/stm32f0xx_hal_spi.c
device/stm32f0xx_hal_spi_ex.c
device/stm32f0xx_hal_tim.c
device/stm32f0xx_hal_tim_ex.c
device/stm32f0xx_hal_tsc.c
device/stm32f0xx_hal_uart.c
device/stm32f0xx_hal_uart_ex.c
device/stm32f0xx_hal_usart.c
device/stm32f0xx_hal_wwdg.c
device/stm32f0xx_ll_adc.c
device/stm32f0xx_ll_comp.c
device/stm32f0xx_ll_crc.c
device/stm32f0xx_ll_crs.c
device/stm32f0xx_ll_dac.c
device/stm32f0xx_ll_dma.c
device/stm32f0xx_ll_exti.c
device/stm32f0xx_ll_gpio.c
device/stm32f0xx_ll_i2c.c
device/stm32f0xx_ll_pwr.c
device/stm32f0xx_ll_rcc.c
device/stm32f0xx_ll_rtc.c
device/stm32f0xx_ll_spi.c
device/stm32f0xx_ll_tim.c
device/stm32f0xx_ll_usart.c
device/stm32f0xx_ll_utils.c
device/system_stm32f0xx.c
)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -0,0 +1,26 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S)
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/STM32F070XB.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE device/TOOLCHAIN_ARM/startup_stm32f070xb.S)
set(LINKER_FILE device/TOOLCHAIN_ARM/stm32f070xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
PeripheralPins.c
device/system_clock.c
device/cmsis_nvic.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -0,0 +1,26 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S)
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/STM32F072XB.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE device/TOOLCHAIN_ARM/startup_stm32f072xb.S)
set(LINKER_FILE device/TOOLCHAIN_ARM/stm32f072xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
PeripheralPins.c
device/system_clock.c
device/cmsis_nvic.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -0,0 +1,29 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S)
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/STM32F091XC.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE device/TOOLCHAIN_ARM/startup_stm32f091xc.S)
set(LINKER_FILE device/TOOLCHAIN_ARM/stm32f091rc.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
device/cmsis_nvic.c
device/system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,25 @@
# 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()
target_sources(mbed-core
INTERFACE
analogin_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
INTERFACE
.
)

View File

@ -0,0 +1,74 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
STM32F1xx_HAL_Driver/Legacy/stm32f1xx_hal_can_legacy.c
STM32F1xx_HAL_Driver/stm32f1xx_hal.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_adc.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_adc_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_can.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_cec.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_cortex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_crc.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_dac.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_dac_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_dma.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_eth.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_exti.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_flash.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_flash_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_gpio.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_gpio_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_hcd.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_i2c.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_i2s.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_irda.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_iwdg.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_mmc.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_nand.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_nor.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_pccard.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_pcd.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_pcd_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_pwr.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_rcc.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_rcc_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_rtc.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_rtc_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_sd.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_smartcard.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_spi.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_sram.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_tim.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_tim_ex.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_uart.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_usart.c
STM32F1xx_HAL_Driver/stm32f1xx_hal_wwdg.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_adc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_crc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_dac.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_dma.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_exti.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_fsmc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_gpio.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_i2c.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_pwr.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_rcc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_rtc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_sdmmc.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_spi.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_tim.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_usart.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_usb.c
STM32F1xx_HAL_Driver/stm32f1xx_ll_utils.c
system_stm32f1xx.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32F1xx_HAL_Driver
STM32F1xx_HAL_Driver/Legacy
)

View File

@ -0,0 +1,23 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32f103x8.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f103xb.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103x8.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,23 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32f103xb.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f103xb.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f103xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,87 @@
# 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()
target_sources(mbed-core
INTERFACE
analogin_device.c
analogout_device.c
flash_api.c
gpio_irq_device.c
pwmout_device.c
serial_device.c
spi_api.c
device/stm32f2xx_hal.c
device/stm32f2xx_hal_adc.c
device/stm32f2xx_hal_adc_ex.c
device/stm32f2xx_hal_can.c
device/stm32f2xx_hal_cortex.c
device/stm32f2xx_hal_crc.c
device/stm32f2xx_hal_cryp.c
device/stm32f2xx_hal_dac.c
device/stm32f2xx_hal_dac_ex.c
device/stm32f2xx_hal_dcmi.c
device/stm32f2xx_hal_dma.c
device/stm32f2xx_hal_dma_ex.c
device/stm32f2xx_hal_eth.c
device/stm32f2xx_hal_flash.c
device/stm32f2xx_hal_flash_ex.c
device/stm32f2xx_hal_gpio.c
device/stm32f2xx_hal_hash.c
device/stm32f2xx_hal_hcd.c
device/stm32f2xx_hal_i2c.c
device/stm32f2xx_hal_i2s.c
device/stm32f2xx_hal_irda.c
device/stm32f2xx_hal_iwdg.c
device/stm32f2xx_hal_mmc.c
device/stm32f2xx_hal_nand.c
device/stm32f2xx_hal_nor.c
device/stm32f2xx_hal_pccard.c
device/stm32f2xx_hal_pcd.c
device/stm32f2xx_hal_pcd_ex.c
device/stm32f2xx_hal_pwr.c
device/stm32f2xx_hal_pwr_ex.c
device/stm32f2xx_hal_rcc.c
device/stm32f2xx_hal_rcc_ex.c
device/stm32f2xx_hal_rng.c
device/stm32f2xx_hal_rtc.c
device/stm32f2xx_hal_rtc_ex.c
device/stm32f2xx_hal_sd.c
device/stm32f2xx_hal_smartcard.c
device/stm32f2xx_hal_spi.c
device/stm32f2xx_hal_sram.c
device/stm32f2xx_hal_tim.c
device/stm32f2xx_hal_tim_ex.c
device/stm32f2xx_hal_uart.c
device/stm32f2xx_hal_usart.c
device/stm32f2xx_hal_wwdg.c
device/stm32f2xx_ll_adc.c
device/stm32f2xx_ll_crc.c
device/stm32f2xx_ll_dac.c
device/stm32f2xx_ll_dma.c
device/stm32f2xx_ll_exti.c
device/stm32f2xx_ll_fsmc.c
device/stm32f2xx_ll_gpio.c
device/stm32f2xx_ll_i2c.c
device/stm32f2xx_ll_pwr.c
device/stm32f2xx_ll_rcc.c
device/stm32f2xx_ll_rng.c
device/stm32f2xx_ll_rtc.c
device/stm32f2xx_ll_sdmmc.c
device/stm32f2xx_ll_spi.c
device/stm32f2xx_ll_tim.c
device/stm32f2xx_ll_usart.c
device/stm32f2xx_ll_usb.c
device/stm32f2xx_ll_utils.c
device/system_stm32f2xx.c
)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -0,0 +1,27 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f207xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F207ZGTx_FLASH.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f207xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f207xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
PeripheralPins.c
device/system_clock.c
${STARTUP_FILE}
)
add_subdirectory(STM32Cube_FW)
target_include_directories(mbed-core
INTERFACE
.
device
)

View File

@ -1,11 +1,19 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("STM32F303x8" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32F303x8)
if("STM32F302x8" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32F302x8)
elseif("STM32F303x8" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_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(device)
add_subdirectory(STM32Cube_FW)
target_include_directories(mbed-core
INTERFACE

View File

@ -0,0 +1,86 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
STM32F3xx_HAL_Driver/Legacy/stm32f3xx_hal_can_legacy.c
STM32F3xx_HAL_Driver/stm32f3xx_hal.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_adc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_adc_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_can.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_cec.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_comp.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_cortex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_crc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_crc_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_dac.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_dac_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_dma.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_exti.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_flash.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_flash_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_gpio.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_hrtim.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_i2c.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_i2c_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_i2s.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_i2s_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_irda.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_iwdg.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_nand.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_nor.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_opamp.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_opamp_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_pccard.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_pcd.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_pcd_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_pwr.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_pwr_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_rcc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_rcc_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_rtc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_rtc_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_sdadc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_smartcard.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_smartcard_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_smbus.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_spi.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_spi_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_sram.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_tim.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_tim_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_tsc.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_uart.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_uart_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_usart.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_usart_ex.c
STM32F3xx_HAL_Driver/stm32f3xx_hal_wwdg.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_adc.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_comp.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_crc.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_dac.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_dma.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_exti.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_fmc.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_gpio.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_hrtim.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_i2c.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_opamp.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_pwr.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_rcc.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_rtc.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_spi.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_tim.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_usart.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_usb.c
STM32F3xx_HAL_Driver/stm32f3xx_ll_utils.c
system_stm32f3xx.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32F3xx_HAL_Driver
STM32F3xx_HAL_Driver/Legacy
)

View File

@ -5,7 +5,21 @@ if("NUCLEO_F303K8" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F303K8)
endif()
add_subdirectory(device)
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F303X8.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f303x8.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303x8.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE

View File

@ -9,5 +9,4 @@ target_include_directories(mbed-core
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)

View File

@ -1,32 +0,0 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
function(_mbed_get_assembly_stm32f303x8)
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f303x8.S)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(STARTUP_FILE TOOLCHAIN_IAR/startup_stm32f303x8.S)
endif()
target_sources(mbed-core INTERFACE ${STARTUP_FILE})
endfunction()
function(_mbed_set_linker_file)
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_GCC_ARM/STM32F303X8.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_ARM/stm32f303x8.sct)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_IAR/stm32f303x8.icf)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${LINKER_FILE})
endfunction()
_mbed_get_assembly_stm32f303x8()
_mbed_set_linker_file()
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f303xc.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xc.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,29 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F303XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f303xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f303xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F334X8.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f334x8.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f334x8.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -1,78 +0,0 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_include_directories(mbed-core
INTERFACE
.
)
target_sources(mbed-core
INTERFACE
stm32f3xx_hal.c
stm32f3xx_hal_adc.c
stm32f3xx_hal_adc_ex.c
stm32f3xx_hal_can.c
stm32f3xx_hal_cec.c
stm32f3xx_hal_comp.c
stm32f3xx_hal_cortex.c
stm32f3xx_hal_crc.c
stm32f3xx_hal_crc_ex.c
stm32f3xx_hal_dac.c
stm32f3xx_hal_dac_ex.c
stm32f3xx_hal_dma.c
stm32f3xx_hal_flash.c
stm32f3xx_hal_flash_ex.c
stm32f3xx_hal_gpio.c
stm32f3xx_hal_hrtim.c
stm32f3xx_hal_i2c.c
stm32f3xx_hal_i2c_ex.c
stm32f3xx_hal_i2s_ex.c
stm32f3xx_hal_irda.c
stm32f3xx_hal_iwdg.c
stm32f3xx_hal_nand.c
stm32f3xx_hal_nor.c
stm32f3xx_hal_opamp.c
stm32f3xx_hal_opamp_ex.c
stm32f3xx_hal_pccard.c
stm32f3xx_hal_pcd.c
stm32f3xx_hal_pcd_ex.c
stm32f3xx_hal_pwr.c
stm32f3xx_hal_pwr_ex.c
stm32f3xx_hal_rcc.c
stm32f3xx_hal_rcc_ex.c
stm32f3xx_hal_rtc.c
stm32f3xx_hal_rtc_ex.c
stm32f3xx_hal_sdadc.c
stm32f3xx_hal_smartcard.c
stm32f3xx_hal_smartcard_ex.c
stm32f3xx_hal_smbus.c
stm32f3xx_hal_spi.c
stm32f3xx_hal_spi_ex.c
stm32f3xx_hal_sram.c
stm32f3xx_hal_tim.c
stm32f3xx_hal_tim_ex.c
stm32f3xx_hal_tsc.c
stm32f3xx_hal_uart.c
stm32f3xx_hal_uart_ex.c
stm32f3xx_hal_usart.c
stm32f3xx_hal_wwdg.c
stm32f3xx_ll_adc.c
stm32f3xx_ll_comp.c
stm32f3xx_ll_crc.c
stm32f3xx_ll_dac.c
stm32f3xx_ll_dma.c
stm32f3xx_ll_exti.c
stm32f3xx_ll_fmc.c
stm32f3xx_ll_gpio.c
stm32f3xx_ll_hrtim.c
stm32f3xx_ll_i2c.c
stm32f3xx_ll_opamp.c
stm32f3xx_ll_pwr.c
stm32f3xx_ll_rcc.c
stm32f3xx_ll_rtc.c
stm32f3xx_ll_spi.c
stm32f3xx_ll_tim.c
stm32f3xx_ll_usart.c
stm32f3xx_ll_utils.c
system_stm32f3xx.c
)

View File

@ -1,10 +1,36 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("STM32F401xE" IN_LIST MBED_TARGET_LABELS)
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)
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()
target_sources(mbed-core

View File

@ -0,0 +1,24 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F411XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
ONBOARD_TELIT_HE910.cpp
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,24 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F411XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
PeripheralPins.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,21 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XC.ld)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
PeripheralPins.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -1,35 +1,25 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
function(_mbed_get_assembly_stm32f401xe)
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f401xe.S)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(STARTUP_FILE TOOLCHAIN_IAR/startup_stm32f401xe.S)
endif()
target_sources(mbed-core INTERFACE ${STARTUP_FILE})
endfunction()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f401xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f401xe.sct)
endif()
function(_mbed_set_linker_file)
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_GCC_ARM/STM32F401XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_ARM/stm32f401xe.sct)
elseif(${MBED_TOOLCHAIN} STREQUAL "IAR")
set(LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/TOOLCHAIN_IAR/stm32f401xe.icf)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${LINKER_FILE})
endfunction()
_mbed_get_assembly_stm32f401xe()
_mbed_set_linker_file()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
if("NUCLEO_F401RE" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F401RE)
endif()
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F401XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f401xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f401xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F407XG.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_STM32F407xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/STM32F407xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f410rx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F410xB.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f410rx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f410xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F411XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f411xe.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f411re.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,29 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f412zx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F412xG.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f412zx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f412xg.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,31 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("DISCO_F413ZH" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_DISCO_F413ZH)
elseif("MTS_DRAGONFLY_F413RH" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_MTS_DRAGONFLY_F413RH)
elseif("NUCLEO_F413ZH" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F413ZH)
endif()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f413xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F413xH.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f413xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f413xh.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
ONBOARD_TELIT_HE910.cpp
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,29 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F429xI.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f429xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f429xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_init_pre.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f437xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F437xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f437xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f437xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -30,6 +30,8 @@ if("NUCLEO_F439ZI" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_F439ZI)
elseif("WIO_3G" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_WIO_3G)
elseif("WIO_BG96" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_WIO_BG96)
endif()
target_include_directories(mbed-core

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -5,7 +5,6 @@ target_sources(mbed-core
INTERFACE
ONBOARD_QUECTEL_UG96.cpp
PeripheralPins.c
PinNames.h
system_clock.c
)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
ONBOARD_QUECTEL_BG96.cpp
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,28 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F446XE.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f446xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f446xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,28 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f469xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F469XI.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f469xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f469xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,30 @@
# 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()
target_sources(mbed-core
INTERFACE
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
INTERFACE
.
)

View File

@ -0,0 +1,106 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
system_stm32f7xx.c
STM32F7xx_HAL_Driver/Legacy/stm32f7xx_hal_can_legacy.c
STM32F7xx_HAL_Driver/stm32f7xx_hal.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_adc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_adc_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_can.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_cec.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_cortex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_crc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_crc_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_cryp.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_cryp_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dac.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dac_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dcmi.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dcmi_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dfsdm.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dma.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dma2d.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dma_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_dsi.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_eth.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_exti.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_flash.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_flash_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_gpio.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_hash.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_hash_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_hcd.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_i2c.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_i2c_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_i2s.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_irda.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_iwdg.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_jpeg.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_lptim.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_ltdc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_ltdc_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_mdios.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_mmc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_nand.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_nor.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_pcd.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_pcd_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_pwr.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_pwr_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_qspi.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_rcc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_rcc_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_rng.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_rtc.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_rtc_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_sai.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_sai_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_sd.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_sdram.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_smartcard.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_smartcard_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_smbus.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_spdifrx.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_spi.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_spi_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_sram.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_tim.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_tim_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_uart.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_uart_ex.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_usart.c
STM32F7xx_HAL_Driver/stm32f7xx_hal_wwdg.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_adc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_crc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_dac.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_dma.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_dma2d.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_exti.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_fmc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_gpio.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_i2c.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_lptim.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_pwr.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_rcc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_rng.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_rtc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_sdmmc.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_spi.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_tim.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_usart.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_usb.c
STM32F7xx_HAL_Driver/stm32f7xx_ll_utils.c
system_stm32f7xx.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32F7xx_HAL_Driver
STM32F7xx_HAL_Driver/Legacy
)

View File

@ -0,0 +1,28 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F746xG.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f746xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f746xg.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f756xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F756xG.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f756xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f756xg.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,28 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f756xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F756xG.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f756xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f756xg.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,14 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
uhuru_raven_init.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32F769xI.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32f769xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32f769xi.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,34 @@
# 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()
target_sources(mbed-core
INTERFACE
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
INTERFACE
.
)

View File

@ -0,0 +1,78 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
STM32G0xx_HAL_Driver/stm32g0xx_hal.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_adc_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_cec.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_comp.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_cortex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_crc.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_crc_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_cryp.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_cryp_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_dac.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_dac_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_dma_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_exti.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_flash_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_gpio.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2c_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_i2s.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_irda.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_iwdg.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_lptim.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_pwr_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rcc.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rcc_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rng.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rtc.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_rtc_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_smartcard.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_smartcard_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_smbus.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_spi.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_spi_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_tim.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_tim_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_uart.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_uart_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_usart.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_usart_ex.c
STM32G0xx_HAL_Driver/stm32g0xx_hal_wwdg.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_adc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_comp.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_crc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_dac.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_dma.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_exti.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_gpio.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_i2c.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_lptim.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_lpuart.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_pwr.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_rcc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_rng.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_rtc.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_spi.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_tim.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_ucpd.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_usart.c
STM32G0xx_HAL_Driver/stm32g0xx_ll_utils.c
system_stm32g0xx.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32G0xx_HAL_Driver
STM32G0xx_HAL_Driver/Legacy
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g030xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g030xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g030xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g030xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g031xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g031xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g031xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g031xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g041xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g041xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g041xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g041xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g070xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g070xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g070xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g070xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,26 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g071xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g071xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g071xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g071xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g081xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g081xx.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g081xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g081xx.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,36 @@
# 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()
target_sources(mbed-core
INTERFACE
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
INTERFACE
.
)

View File

@ -0,0 +1,98 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
STM32G4xx_HAL_Driver/stm32g4xx_hal.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_adc.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_adc_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_comp.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_cordic.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_cortex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_crc.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_crc_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_cryp.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_cryp_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_dac.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_dac_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_dma.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_dma_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_exti.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_fdcan.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_flash.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_flash_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_flash_ramfunc.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_fmac.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_gpio.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_hrtim.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_i2c.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_i2c_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_i2s.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_irda.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_iwdg.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_lptim.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_nand.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_nor.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_opamp.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_opamp_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_pcd.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_pcd_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_pwr.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_pwr_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_qspi.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_rcc.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_rcc_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_rng.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_rtc.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_rtc_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_sai.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_sai_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_smartcard.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_smartcard_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_smbus.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_spi.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_spi_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_sram.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_tim.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_tim_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_uart.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_uart_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_usart.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_usart_ex.c
STM32G4xx_HAL_Driver/stm32g4xx_hal_wwdg.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_adc.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_comp.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_cordic.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_crc.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_crs.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_dac.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_dma.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_exti.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_fmac.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_fmc.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_gpio.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_hrtim.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_i2c.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_lptim.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_lpuart.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_opamp.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_pwr.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_rcc.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_rng.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_rtc.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_spi.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_tim.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_ucpd.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_usart.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_usb.c
STM32G4xx_HAL_Driver/stm32g4xx_ll_utils.c
system_stm32g4xx.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32G4xx_HAL_Driver
STM32G4xx_HAL_Driver/Legacy
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g431xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g431xb.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g431xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g431xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g441xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g441xb.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g441xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g441xb.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g471xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g471xe.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g471xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g471xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g473xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g473xe.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g473xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g473xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,27 @@
# 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()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g474xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g474xe.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g474xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g474xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g483xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g483xe.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g483xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g483xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32g484xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32g484xe.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32g484xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32g484xe.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,30 @@
# 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()
target_sources(mbed-core
INTERFACE
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
INTERFACE
.
)

View File

@ -0,0 +1,135 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
STM32H7xx_HAL_Driver/stm32h7xx_hal.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_adc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_adc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_cec.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_comp.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_cordic.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_cortex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_crc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_crc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_cryp.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_cryp_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dac.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dac_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dcmi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dfsdm.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dfsdm_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dma.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dma2d.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dma_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dsi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_dts.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_eth.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_eth_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_exti.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_fdcan.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_flash.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_flash_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_fmac.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_gfxmmu.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_gpio.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_hash.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_hash_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_hcd.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_hrtim.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_hsem.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_i2c.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_i2c_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_i2s.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_i2s_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_irda.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_iwdg.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_jpeg.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_lptim.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_ltdc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_ltdc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_mdios.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_mdma.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_mmc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_mmc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_nand.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_nor.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_opamp.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_opamp_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_ospi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_otfdec.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_pcd.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_pcd_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_pssi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_pwr.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_pwr_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_qspi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_ramecc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rcc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rng.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rng_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_rtc_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sai.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sai_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sd.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sdram.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sd_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_smartcard.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_smartcard_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_smbus.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_spdifrx.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_spi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_spi_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_sram.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_swpmi.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_tim.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_tim_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_uart.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_uart_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_usart.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_usart_ex.c
STM32H7xx_HAL_Driver/stm32h7xx_hal_wwdg.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_adc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_bdma.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_comp.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_cordic.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_crc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_crs.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_dac.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_delayblock.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_dma.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_dma2d.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_exti.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_fmac.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_fmc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_gpio.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_hrtim.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_i2c.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_lptim.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_lpuart.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_mdma.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_opamp.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_pwr.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_rcc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_rng.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_rtc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_sdmmc.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_spi.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_swpmi.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_tim.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_usart.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_usb.c
STM32H7xx_HAL_Driver/stm32h7xx_ll_utils.c
system_stm32h7xx_dualcore_boot_cm4_cm7.c
system_stm32h7xx_singlecore.c
)
target_include_directories(mbed-core
INTERFACE
.
CMSIS
STM32H7xx_HAL_Driver
STM32H7xx_HAL_Driver/Legacy
)

View File

@ -0,0 +1,28 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("NUCLEO_H743ZI" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_H743ZI)
elseif("NUCLEO_H743ZI2" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_H743ZI2)
endif()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h743xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H743xI.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h743xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h743xI.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
system_clock.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,13 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("STM32H745xI_CM4" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32H745xI_CM4)
elseif("STM32H745xI_CM7" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32H745xI_CM7)
endif()
target_sources(mbed-core
INTERFACE
system_clock.c
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h745xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H745xI_CM4.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h745xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h745xI_CM4.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h745xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H745xI_CM7.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h745xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h745xI_CM7.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,15 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("DISCO_H747I" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_DISCO_H747I)
elseif("STM32H747xI_CM4" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32H747xI_CM4)
elseif("STM32H7A3xIQ" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_STM32H7A3xIQ)
endif()
target_sources(mbed-core
INTERFACE
system_clock.c
)

View File

@ -0,0 +1,12 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
target_sources(mbed-core
INTERFACE
PeripheralPins.c
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H747xI_CM4.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h747xI_CM4.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,22 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/STM32H747xI_CM7.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h747xx.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h747xI_CM7.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

View File

@ -0,0 +1,27 @@
# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
if("NUCLEO_H7A3ZI_Q" IN_LIST MBED_TARGET_LABELS)
add_subdirectory(TARGET_NUCLEO_H7A3ZI_Q)
endif()
if(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(STARTUP_FILE TOOLCHAIN_GCC_ARM/startup_stm32h7a3xxq.S)
set(LINKER_FILE TOOLCHAIN_GCC_ARM/stm32h7a3xxq.ld)
elseif(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(STARTUP_FILE TOOLCHAIN_ARM/startup_stm32h7a3xxq.S)
set(LINKER_FILE TOOLCHAIN_ARM/stm32h7a3xxq.sct)
endif()
set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_sources(mbed-core
INTERFACE
system_clock.c
${STARTUP_FILE}
)
target_include_directories(mbed-core
INTERFACE
.
)

Some files were not shown because too many files have changed in this diff Show More