2019-04-06 21:08:09 +08:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2018-12-11 23:33:23 +08:00
|
|
|
cmake_minimum_required(VERSION 3.13.1)
|
2020-05-29 08:58:50 +08:00
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
2018-10-25 22:54:09 +08:00
|
|
|
project(intel_s1000_crb)
|
2017-11-03 14:18:09 +08:00
|
|
|
|
2018-03-17 02:21:15 +08:00
|
|
|
if(CONFIG_I2C)
|
|
|
|
target_sources(app PRIVATE src/i2c_test.c)
|
2018-12-02 01:48:59 +08:00
|
|
|
target_compile_definitions(app PRIVATE -DLED_LIGHT_PAT=1)
|
2018-03-17 02:21:15 +08:00
|
|
|
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)
|
|
|
|
target_sources(app PRIVATE src/test_hid.c)
|
|
|
|
endif()
|
2018-11-13 14:28:41 +08:00
|
|
|
if(CONFIG_SPI)
|
|
|
|
target_sources(app PRIVATE src/spi_flash.c)
|
|
|
|
endif()
|
2018-03-17 02:21:15 +08:00
|
|
|
|
|
|
|
target_sources(app PRIVATE src/main.c)
|