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

# This applications relies on BSP providing design.cyqspi
if(NOT TARGET bsp_design_qspi)
  return()
endif()

psoc6_add_executable(
  NAME
    Advanced_Sector_Protection
  SOURCES
    ${APP_DIR}/memory_interfacing/Advanced_Sector_Protection/main.c
    ${APP_DIR}/memory_interfacing/Advanced_Sector_Protection/Functions.h
    ${APP_DIR}/memory_interfacing/Advanced_Sector_Protection/Functions.c
  LINK_LIBRARIES
    mtb-hal-cat1
    retarget-io
    serial-flash
)
