diff options
| author | hathach <[email protected]> | 2020-04-09 00:06:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-09 11:02:16 +0700 |
| commit | cefbd9579c7fb5a16a253d5d0f7c582142933c46 (patch) | |
| tree | 02bdfd3d9ef5df786b4f69612758c0cec73b1851 /examples | |
| parent | bfde988af3d848af7a5c29dee46030aa73630d43 (diff) | |
add neopixel led strip driver for saola, make saola as an component
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/device/board_test/CMakeLists.txt | 7 | ||||
| -rw-r--r-- | examples/device/board_test/src/CMakeLists.txt | 4 |
2 files changed, 4 insertions, 7 deletions
diff --git a/examples/device/board_test/CMakeLists.txt b/examples/device/board_test/CMakeLists.txt index 1d8f2fe32..27f737d88 100644 --- a/examples/device/board_test/CMakeLists.txt +++ b/examples/device/board_test/CMakeLists.txt @@ -2,13 +2,14 @@ # CMakeLists in this exact order for cmake to work correctly cmake_minimum_required(VERSION 3.5) -# example src directory -set(EXTRA_COMPONENT_DIRS "src") - # TOP is absolute path to root directory of TinyUSB git repo set(TOP "../../..") get_filename_component(TOP "${TOP}" REALPATH) +# Add example src and bsp directories +set(EXTRA_COMPONENT_DIRS "src" "${TOP}/hw/bsp/esp32s2_saola_1") + include($ENV{IDF_PATH}/tools/cmake/project.cmake) +set(SUPPORTED_TARGETS esp32s2) project(board_test) diff --git a/examples/device/board_test/src/CMakeLists.txt b/examples/device/board_test/src/CMakeLists.txt index 676159ac9..29ae46a33 100644 --- a/examples/device/board_test/src/CMakeLists.txt +++ b/examples/device/board_test/src/CMakeLists.txt @@ -13,7 +13,3 @@ target_include_directories(${COMPONENT_TARGET} PUBLIC "${TOP}/hw" "${TOP}/src" ) - -target_sources(${COMPONENT_TARGET} PUBLIC - "${TOP}/hw/bsp/esp32s2_saola_1/esp32s2_saola_1.c" -) |
