dc9bd3afe3
This PR relocates the sensor trigger sample application from the `sensor_shell` sample to a subcommand in the actual sensor shell. The subcommand has a UI for enabling a given trigger on a given sensor. A built-in handler for the data_ready trigger is included that prints the latest data to the log. Currently, only `SENSOR_TRIG_DATA_READY` is supported but the groundwork is there to add others. Tested on a `tdk_robokit1` board. Signed-off-by: Tristan Honscheid <honscheid@google.com>
11 lines
244 B
CMake
11 lines
244 B
CMake
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
cmake_minimum_required(VERSION 3.20.0)
|
|
|
|
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
|
project(sensor_shell)
|
|
|
|
target_sources(app PRIVATE src/main.c)
|
|
|
|
target_include_directories(app PRIVATE include)
|