Planning on abstracting this behind hardware setup APIs, but this works for a simple demo until then
20 lines
398 B
CMake
20 lines
398 B
CMake
cmake_minimum_required(VERSION 3.20.0)
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
|
|
project(openrcore)
|
|
|
|
target_include_directories(app PRIVATE .)
|
|
|
|
target_sources(app PRIVATE
|
|
core/main.c
|
|
core/ble.c
|
|
core/routine.c
|
|
core/hardware/adc.c
|
|
)
|
|
|
|
# User routines to compile
|
|
target_sources(app PRIVATE
|
|
routines/routine_list.c
|
|
routines/input_echo.c
|
|
routines/photosensor.c
|
|
)
|