blob: 23d8f948a43fcc3a80ff0c7eb31f04e55c7e2de3 [file] [log] [blame]
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.20.0)
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
project(intel_s1000_crb)
if(CONFIG_I2C)
target_sources(app PRIVATE src/i2c_test.c)
target_compile_definitions(app PRIVATE -DLED_LIGHT_PAT=1)
endif()
if(CONFIG_GPIO)
target_sources(app PRIVATE src/gpio_test.c)
endif()
if(CONFIG_DMA)
target_sources(app PRIVATE src/dma_test.c)
endif()
if(CONFIG_I2S)
target_sources(app PRIVATE src/i2s_test.c)
endif()
if(CONFIG_USB_DEVICE_STACK)
target_sources(app PRIVATE src/test_hid.c)
endif()
if(CONFIG_SPI)
target_sources(app PRIVATE src/spi_flash.c)
endif()
target_sources(app PRIVATE src/main.c)