1# Copyright (c) 2023 Cypress Semiconductor Corporation (an Infineon company) or 2# an affiliate of Cypress Semiconductor Corporation 3# 4# SPDX-License-Identifier: Apache-2.0 5 6set(template_dir ${ZEPHYR_HAL_INFINEON_MODULE_DIR}/mtb-template-cat1) 7set(cat1a_dir ${template_dir}/files/templates/cat1a) 8set(cat1b_dir ${template_dir}/files/templates/cat1b) 9 10if(CONFIG_SOC_FAMILY_INFINEON_CAT1A) 11 zephyr_include_directories(${cat1a_dir}/COMPONENT_MTB) 12 zephyr_include_directories(${cat1a_dir}/COMPONENT_MTB/COMPONENT_CM33/HEADER_FILES) 13 14 zephyr_library_sources_ifdef(CONFIG_CPU_CORTEX_M4 15 ${cat1a_dir}/COMPONENT_MTB/COMPONENT_CM4/system_psoc6_cm4.c) 16 zephyr_library_sources_ifdef(CONFIG_CPU_CORTEX_M0PLUS 17 ${cat1a_dir}/COMPONENT_MTB/COMPONENT_CM0P/system_psoc6_cm0plus.c) 18endif() 19 20 21# Add support cyw20829 (cat1b) 22if(CONFIG_SOC_FAMILY_INFINEON_CAT1B) 23 zephyr_include_directories(${cat1b_dir}/COMPONENT_MTB) 24 zephyr_include_directories(${cat1b_dir}/COMPONENT_MTB/COMPONENT_CM33/HEADER_FILES) 25 zephyr_library_sources(${cat1b_dir}/COMPONENT_MTB/COMPONENT_CM33/system_cyw20829.c) 26endif() 27