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

# https://github.com/Infineon/Community-Code-Examples/tree/master/sensor_interfacing/cce-psoc6-im69d130/COMPONENT_CUSTOM_DESIGN_MODUS
psoc6_check_bsp(
  CY8CKIT-062-WIFI-BT
)

psoc6_add_executable(
  NAME
    cce-psoc6-im69d130
  SOURCES
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/main.c
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/audio.h
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/audio_in.h
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/audio_in.c
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/usb_comm.h
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/usb_comm.c
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    usbdev
  DESIGN_MODUS
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_${BSP_NAME}/design.modus
  DESIGN_USBDEV
    ${APP_DIR}/sensor_interfacing/cce-psoc6-im69d130/COMPONENT_CUSTOM_DESIGN_MODUS/TARGET_${BSP_NAME}/design.cyusbdev
  GENERATED_SOURCES
    cycfg.h
    cycfg.c
    cycfg_clocks.h
    cycfg_clocks.c
    cycfg_dmas.h
    cycfg_dmas.c
    cycfg_notices.h
    cycfg_peripherals.h
    cycfg_peripherals.c
    cycfg_pins.h
    cycfg_pins.c
    cycfg_routing.h
    cycfg_routing.c
    cycfg_system.h
    cycfg_system.c
)
