Skip to content

Commit fafc5c3

Browse files
committed
Add support for CYW9P62S1_43438EVB_01
1 parent db6df68 commit fafc5c3

File tree

1 file changed

+60
-0
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYW9P62S1_43438EVB_01

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Copyright (c) 2020 ARM Limited. All rights reserved.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
if("BSP_DESIGN_MODUS" IN_LIST MBED_TARGET_LABELS)
5+
target_include_directories(mbed-core
6+
INTERFACE
7+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource
8+
)
9+
10+
target_sources(mbed-core
11+
INTERFACE
12+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c
13+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_clocks.c
14+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_peripherals.c
15+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_pins.c
16+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_qspi_memslot.c
17+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_routing.c
18+
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_system.c
19+
)
20+
endif()
21+
22+
if("CM0P" IN_LIST MBED_TARGET_LABELS)
23+
set(SYSTEM_SOURCE device/COMPONENT_CM0P/system_psoc6_cm0plus.c)
24+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
25+
set(LINKER_FILE device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct)
26+
set(STARTUP_FILE device/COMPONENT_CM0P/TOOLCHAIN_ARM/startup_psoc6_01_cm0plus.S)
27+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
28+
set(LINKER_FILE device/COMPONENT_CM0P/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm0plus.ld)
29+
set(STARTUP_FILE device/COMPONENT_CM0P/TOOLCHAIN_GCC_ARM/startup_psoc6_01_cm0plus.S)
30+
endif()
31+
elseif("CM4" IN_LIST MBED_TARGET_LABELS)
32+
set(SYSTEM_SOURCE device/COMPONENT_CM4/system_psoc6_cm4.c)
33+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
34+
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx7_cm4_dual.sct)
35+
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_01_cm4.S)
36+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
37+
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm4_dual.ld)
38+
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_01_cm4.S)
39+
endif()
40+
endif()
41+
42+
set_property(
43+
GLOBAL PROPERTY
44+
MBED_TARGET_LINKER_FILE
45+
${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}
46+
)
47+
48+
target_include_directories(mbed-core
49+
INTERFACE
50+
.
51+
device
52+
)
53+
54+
target_sources(mbed-core
55+
INTERFACE
56+
PeripheralPins.c
57+
cybsp.c
58+
${SYSTEM_SOURCE}
59+
${STARTUP_FILE}
60+
)

0 commit comments

Comments
 (0)