Skip to content

Commit efafbd5

Browse files
committed
Add support for CYTFM_064B0S2_4343W
1 parent fafc5c3 commit efafbd5

File tree

1 file changed

+64
-0
lines changed
  • targets/TARGET_Cypress/TARGET_PSOC6/TARGET_CYTFM_064B0S2_4343W

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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("CM4" IN_LIST MBED_TARGET_LABELS)
23+
set(SYSTEM_SOURCE device/COMPONENT_CM4/system_psoc6_cm4.c)
24+
25+
target_include_directories(mbed-core
26+
INTERFACE
27+
device/COMPONENT_CM4
28+
)
29+
30+
target_sources(mbed-core
31+
INTERFACE
32+
device/COMPONENT_CM4/device_definition.c
33+
)
34+
35+
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
36+
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/cyb06xxa_cm4_dual.sct)
37+
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_02_cm4.S)
38+
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
39+
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cyb06xxa_cm4_dual.ld)
40+
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_02_cm4.S)
41+
endif()
42+
endif()
43+
44+
set_property(
45+
GLOBAL PROPERTY
46+
MBED_TARGET_LINKER_FILE
47+
${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}
48+
)
49+
50+
target_include_directories(mbed-core
51+
INTERFACE
52+
.
53+
device
54+
partition
55+
)
56+
57+
target_sources(mbed-core
58+
INTERFACE
59+
PeripheralPins.c
60+
cybsp.c
61+
cytfm_flash_info.c
62+
${SYSTEM_SOURCE}
63+
${STARTUP_FILE}
64+
)

0 commit comments

Comments
 (0)