mirror of https://github.com/ARMmbed/mbed-os.git
Add support for CYW9P62S1_43438EVB_01
parent
db6df682b5
commit
fafc5c33e7
|
@ -0,0 +1,60 @@
|
|||
# Copyright (c) 2020 ARM Limited. All rights reserved.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if("BSP_DESIGN_MODUS" IN_LIST MBED_TARGET_LABELS)
|
||||
target_include_directories(mbed-core
|
||||
INTERFACE
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_clocks.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_peripherals.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_pins.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_qspi_memslot.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_routing.c
|
||||
COMPONENT_BSP_DESIGN_MODUS/GeneratedSource/cycfg_system.c
|
||||
)
|
||||
endif()
|
||||
|
||||
if("CM0P" IN_LIST MBED_TARGET_LABELS)
|
||||
set(SYSTEM_SOURCE device/COMPONENT_CM0P/system_psoc6_cm0plus.c)
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
set(LINKER_FILE device/COMPONENT_CM0P/TOOLCHAIN_ARM/cy8c6xx7_cm0plus.sct)
|
||||
set(STARTUP_FILE device/COMPONENT_CM0P/TOOLCHAIN_ARM/startup_psoc6_01_cm0plus.S)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(LINKER_FILE device/COMPONENT_CM0P/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm0plus.ld)
|
||||
set(STARTUP_FILE device/COMPONENT_CM0P/TOOLCHAIN_GCC_ARM/startup_psoc6_01_cm0plus.S)
|
||||
endif()
|
||||
elseif("CM4" IN_LIST MBED_TARGET_LABELS)
|
||||
set(SYSTEM_SOURCE device/COMPONENT_CM4/system_psoc6_cm4.c)
|
||||
if(${MBED_TOOLCHAIN} STREQUAL "ARM")
|
||||
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/cy8c6xx7_cm4_dual.sct)
|
||||
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_ARM/startup_psoc6_01_cm4.S)
|
||||
elseif(${MBED_TOOLCHAIN} STREQUAL "GCC_ARM")
|
||||
set(LINKER_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/cy8c6xx7_cm4_dual.ld)
|
||||
set(STARTUP_FILE device/COMPONENT_CM4/TOOLCHAIN_GCC_ARM/startup_psoc6_01_cm4.S)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set_property(
|
||||
GLOBAL PROPERTY
|
||||
MBED_TARGET_LINKER_FILE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/${LINKER_FILE}
|
||||
)
|
||||
|
||||
target_include_directories(mbed-core
|
||||
INTERFACE
|
||||
.
|
||||
device
|
||||
)
|
||||
|
||||
target_sources(mbed-core
|
||||
INTERFACE
|
||||
PeripheralPins.c
|
||||
cybsp.c
|
||||
${SYSTEM_SOURCE}
|
||||
${STARTUP_FILE}
|
||||
)
|
Loading…
Reference in New Issue