Files
mbed-os/targets/TARGET_Maxim/TARGET_MAX32630/CMakeLists.txt
Beslan 0ef1717155
Some checks failed
Basic Checks / license-check (push) Has been cancelled
Basic Checks / include-check (push) Has been cancelled
Basic Checks / style-check (push) Has been cancelled
Basic Checks / docs-check (push) Has been cancelled
Basic Checks / python-tests (push) Has been cancelled
Basic Checks / pin-validation (push) Has been cancelled
Basic Checks / cmake-checks (push) Has been cancelled
Basic Checks / frozen-tools-check (push) Has been cancelled
Publish or Update docker image for head of branch / prepare-tags (push) Has been cancelled
Release or update docker image for a released mbed-os version / prepare-tags (push) Has been cancelled
Publish or Update docker image for head of branch / build-container (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/amd64) (push) Has been cancelled
Publish or Update docker image for head of branch / test-container (linux/arm64) (push) Has been cancelled
Publish or Update docker image for head of branch / deploy-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / build-container (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/amd64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / test-container (linux/arm64) (push) Has been cancelled
Release or update docker image for a released mbed-os version / deploy-container (push) Has been cancelled
Prune temporary docker images / prune-images (push) Has been cancelled
Mirror mbed-os-6.15.0
2026-07-10 18:42:39 +03:00

85 lines
1.8 KiB
CMake

# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(TARGET_MAX32630FTHR EXCLUDE_FROM_ALL)
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
set(LINKER_FILE device/TOOLCHAIN_ARM_STD/MAX3263x.sct)
set(STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_MAX3263x.S)
set(LIB_EXACT_LE TOOLCHAIN_ARM_STD/libexactLE.ar)
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
set(LINKER_FILE device/TOOLCHAIN_GCC_ARM/max3263x.ld)
set(STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_max3263x.S)
set(LIB_EXACT_LE TOOLCHAIN_GCC_ARM/libexactLE.a)
endif()
add_library(mbed-max32630 INTERFACE)
mbed_set_linker_script(mbed-max32630 ${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE})
target_include_directories(mbed-max32630
INTERFACE
.
device
mxc
)
target_sources(mbed-max32630
INTERFACE
PeripheralPins.c
analogin_api.c
gpio_api.c
gpio_irq_api.c
i2c_api.c
pinmap.c
port_api.c
pwmout_api.c
rtc_api.c
serial_api.c
sleep.c
spi_api.c
us_ticker.c
device/device_nvic.c
device/system_max3263x.c
mxc/adc.c
mxc/clkman.c
mxc/crc.c
mxc/flc.c
mxc/gpio.c
mxc/i2cm.c
mxc/i2cs.c
mxc/icc.c
mxc/ioman.c
mxc/lp.c
mxc/maa.c
mxc/mxc_aes.c
mxc/mxc_assert.c
mxc/mxc_sys.c
mxc/owm.c
mxc/pmu.c
mxc/prng.c
mxc/pt.c
mxc/rtc.c
mxc/spim.c
mxc/spix.c
mxc/tmr.c
mxc/tmr_utils.c
mxc/uart.c
mxc/wdt.c
mxc/wdt2.c
${STARTUP_FILE}
)
target_link_libraries(mbed-max32630
INTERFACE
${CMAKE_CURRENT_SOURCE_DIR}/${LIB_EXACT_LE}
mbed-maxim
)