|
| 1 | +# Copyright (c) 2020 ARM Limited. All rights reserved. |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +if("MAX32625MBED" IN_LIST MBED_TARGET_LABELS) |
| 5 | + target_include_directories(mbed-core |
| 6 | + INTERFACE |
| 7 | + TARGET_MAX32625MBED |
| 8 | + ) |
| 9 | +elseif("MAX32625PICO" IN_LIST MBED_TARGET_LABELS) |
| 10 | + target_include_directories(mbed-core |
| 11 | + INTERFACE |
| 12 | + TARGET_MAX32625PICO |
| 13 | + ) |
| 14 | + |
| 15 | + target_sources(mbed-core |
| 16 | + INTERFACE |
| 17 | + TARGET_MAX32625PICO/low_level_init.c |
| 18 | + ) |
| 19 | +elseif("SDT32625B" IN_LIST MBED_TARGET_LABELS) |
| 20 | + target_include_directories(mbed-core |
| 21 | + INTERFACE |
| 22 | + TARGET_SDT32625B |
| 23 | + ) |
| 24 | +endif() |
| 25 | + |
| 26 | +if(${MBED_TOOLCHAIN} STREQUAL "ARM") |
| 27 | + if("MAX32625_BOOT" IN_LIST MBED_TARGET_LABELS) |
| 28 | + set(LINKER_FILE device/TOOLCHAIN_ARM_STD/TARGET_MAX32625_BOOT/MAX32625.sct) |
| 29 | + elseif("MAX32625_NO_BOOT" IN_LIST MBED_TARGET_LABELS) |
| 30 | + set(LINKER_FILE device/TOOLCHAIN_ARM_STD/TARGET_MAX32625_NO_BOOT/MAX32625.sct) |
| 31 | + endif() |
| 32 | + |
| 33 | + set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_MAX32625.S) |
| 34 | +elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM") |
| 35 | + if("MAX32625_BOOT" IN_LIST MBED_TARGET_LABELS) |
| 36 | + set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/TARGET_MAX32625_BOOT/max32625.ld) |
| 37 | + elseif("MAX32625_NO_BOOT" IN_LIST MBED_TARGET_LABELS) |
| 38 | + set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/TARGET_MAX32625_NO_BOOT/max32625.ld) |
| 39 | + endif() |
| 40 | + |
| 41 | + set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_max32625.S) |
| 42 | +endif() |
| 43 | + |
| 44 | +set_property(GLOBAL PROPERTY MBED_TARGET_LINKER_FILE ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}) |
| 45 | + |
| 46 | +target_include_directories(mbed-core |
| 47 | + INTERFACE |
| 48 | + . |
| 49 | + device |
| 50 | + mxc |
| 51 | +) |
| 52 | + |
| 53 | +target_sources(mbed-core |
| 54 | + INTERFACE |
| 55 | + PeripheralPins.c |
| 56 | + analogin_api.c |
| 57 | + gpio_api.c |
| 58 | + gpio_irq_api.c |
| 59 | + i2c_api.c |
| 60 | + pinmap.c |
| 61 | + port_api.c |
| 62 | + pwmout_api.c |
| 63 | + rtc_api.c |
| 64 | + serial_api.c |
| 65 | + sleep.c |
| 66 | + spi_api.c |
| 67 | + us_ticker.c |
| 68 | + |
| 69 | + device/device_nvic.c |
| 70 | + device/system_max32625.c |
| 71 | + |
| 72 | + mxc/adc.c |
| 73 | + mxc/clkman.c |
| 74 | + mxc/crc.c |
| 75 | + mxc/flc.c |
| 76 | + mxc/gpio.c |
| 77 | + mxc/i2cm.c |
| 78 | + mxc/i2cs.c |
| 79 | + mxc/icc.c |
| 80 | + mxc/ioman.c |
| 81 | + mxc/lp.c |
| 82 | + mxc/maa.c |
| 83 | + mxc/mxc_aes.c |
| 84 | + mxc/mxc_assert.c |
| 85 | + mxc/mxc_sys.c |
| 86 | + mxc/owm.c |
| 87 | + mxc/pmu.c |
| 88 | + mxc/prng.c |
| 89 | + mxc/pt.c |
| 90 | + mxc/rtc.c |
| 91 | + mxc/spim.c |
| 92 | + mxc/spis.c |
| 93 | + mxc/spix.c |
| 94 | + mxc/tmr.c |
| 95 | + mxc/tmr_utils.c |
| 96 | + mxc/uart.c |
| 97 | + mxc/wdt.c |
| 98 | + mxc/wdt2.c |
| 99 | + |
| 100 | + ${STARTUP_FILE} |
| 101 | +) |
0 commit comments