File tree Expand file tree Collapse file tree 2 files changed +12
-31
lines changed
targets/TARGET_Maxim/TARGET_MAX32660 Expand file tree Collapse file tree 2 files changed +12
-31
lines changed Original file line number Diff line number Diff line change 2
2
# SPDX-License-Identifier: Apache-2.0
3
3
4
4
add_subdirectory (TARGET_MAX32660EVSYS EXCLUDE_FROM_ALL )
5
- add_subdirectory (device EXCLUDE_FROM_ALL )
6
5
7
- add_library (mbed-max32660 INTERFACE )
6
+ if (${MBED_TOOLCHAIN} STREQUAL "ARM" )
7
+ set (LINKER_FILE device/TOOLCHAIN_ARM_STD/MAX32660.sct )
8
+ set (STARTUP_FILE device/TOOLCHAIN_ARM_STD/startup_MAX32660.S )
9
+ elseif (${MBED_TOOLCHAIN} STREQUAL "GCC_ARM" )
10
+ set (LINKER_FILE device/TOOLCHAIN_GCC_ARM/max32660.ld )
11
+ set (STARTUP_FILE device/TOOLCHAIN_GCC_ARM/startup_max32660.S )
12
+ endif ()
8
13
14
+ add_library (mbed-max32660 INTERFACE )
15
+ mbed_set_linker_script (mbed-max32660 ${CMAKE_CURRENT_SOURCE_DIR} /${LINKER_FILE} )
9
16
10
17
set (MXM_PARTNUMBER MAX32660 )
11
18
set (MXM_SOURCE_DIR ./Libraries/PeriphDrivers/Source )
@@ -15,6 +22,7 @@ set(MXM_CMSIS_DIR ./Libraries/CMSIS/Device/Maxim)
15
22
target_include_directories (mbed-max32660
16
23
INTERFACE
17
24
.
25
+ device
18
26
19
27
${MXM_PERIPH_DRIVER_DIR} /Include/${MXM_PARTNUMBER}
20
28
${MXM_CMSIS_DIR} /${MXM_PARTNUMBER}/Include
@@ -99,6 +107,8 @@ target_sources(mbed-max32660
99
107
${MXM_SOURCE_DIR} /WDT/wdt_common.c
100
108
${MXM_SOURCE_DIR} /WDT/wdt_me11.c
101
109
${MXM_SOURCE_DIR} /WDT/wdt_reva.c
110
+
111
+ ${STARTUP_FILE}
102
112
)
103
113
104
114
target_link_libraries (mbed-max32660
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments