# This recipe is included by app/community.cmake
# APP_DIR points to Community-Code-Examples root

# https://github.com/Infineon/Community-Code-Examples/blob/master/mtb_training/session02/mtb_02_ex08_spi_master/resource_map.h
psoc6_check_bsp(
  CY8CPROTO-062-4343W
  CY8CKIT-062-WIFI-BT
  CY8CKIT-062-BLE
  CY8CPROTO-063-BLE
  CY8CKIT-062S2-43012
  CYW9P62S1-43438EVB-01
)

psoc6_add_executable(
  NAME
    mtb_02_ex08_spi_master
  SOURCES
    ${APP_DIR}/mtb_training/session02/mtb_02_ex08_spi_master/main.c
    ${APP_DIR}/mtb_training/session02/mtb_02_ex08_spi_master/resource_map.h
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
)
