|
| 1 | +# Copyright (c) 2020 ARM Limited. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +if("GD32F450ZI" IN_LIST MBED_TARGET_LABELS) |
| 5 | + target_include_directories(mbed-core |
| 6 | + INTERFACE |
| 7 | + TARGET_GD32F450ZI |
| 8 | + ) |
| 9 | + |
| 10 | + target_sources(mbed-core |
| 11 | + INTERFACE |
| 12 | + TARGET_GD32F450ZI/PeripheralPins.c |
| 13 | + ) |
| 14 | +endif() |
| 15 | + |
| 16 | +if(${MBED_TOOLCHAIN} STREQUAL "ARM") |
| 17 | + set(LINKER_FILE device/TOOLCHAIN_ARM_STD/gd32f450zi.sct) |
| 18 | + set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_gd32f450.S) |
| 19 | +elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") |
| 20 | + set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/GD32F450xI.ld) |
| 21 | + set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_gd32f450.S) |
| 22 | +endif() |
| 23 | + |
| 24 | +set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) |
| 25 | + |
| 26 | +target_include_directories(mbed-core |
| 27 | + INTERFACE |
| 28 | + . |
| 29 | + device |
| 30 | + GD32F4xx_standard_peripheral/Include |
| 31 | +) |
| 32 | + |
| 33 | +target_sources(mbed-core |
| 34 | + INTERFACE |
| 35 | + analogin_api.c |
| 36 | + analogout_api.c |
| 37 | + can_api.c |
| 38 | + flash_api.c |
| 39 | + gpio_api.c |
| 40 | + gpio_irq_api.c |
| 41 | + i2c_api.c |
| 42 | + mbed_overrides.c |
| 43 | + pinmap.c |
| 44 | + port_api.c |
| 45 | + pwmout_api.c |
| 46 | + rtc_api.c |
| 47 | + serial_api.c |
| 48 | + sleep.c |
| 49 | + spi_api.c |
| 50 | + trng_api.c |
| 51 | + us_ticker.c |
| 52 | + |
| 53 | + device/system_gd32f4xx.c |
| 54 | + |
| 55 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_adc.c |
| 56 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_can.c |
| 57 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_crc.c |
| 58 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_ctc.c |
| 59 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_dac.c |
| 60 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_dbg.c |
| 61 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_dci.c |
| 62 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_dma.c |
| 63 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_enet.c |
| 64 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_exmc.c |
| 65 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_exti.c |
| 66 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_fmc.c |
| 67 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_fwdgt.c |
| 68 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_gpio.c |
| 69 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_i2c.c |
| 70 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_ipa.c |
| 71 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_iref.c |
| 72 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_misc.c |
| 73 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_pmu.c |
| 74 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_rcu.c |
| 75 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_rtc.c |
| 76 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_sdio.c |
| 77 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_spi.c |
| 78 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_syscfg.c |
| 79 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_timer.c |
| 80 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_tli.c |
| 81 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_trng.c |
| 82 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_usart.c |
| 83 | + GD32F4xx_standard_peripheral/Source/gd32f4xx_wwdgt.c |
| 84 | + |
| 85 | + ${STARTUP_FILE} |
| 86 | +) |
0 commit comments