Update the sensor shell logic to use the new sensor_read() APIs and make triggers an option of the sensor_shell sample (this avoids the trigger stealing the interrupt status from one-shot reads). Signed-off-by: Yuval Peress <peress@google.com>
18 lines
527 B
Plaintext
18 lines
527 B
Plaintext
# Copyright (c) 2023 Google LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
config SAMPLE_PRINT_TIMEOUT_MS
|
|
int "Timeout for printing the average sensor sample value"
|
|
default 5000
|
|
help
|
|
Control the frequency of the sampling window over which the sensor
|
|
interrupt handler will collect data.
|
|
|
|
source "Kconfig.zephyr"
|
|
|
|
config INIT_TRIG_DATA_READY
|
|
bool "Register data ready triggers for all sensors on start"
|
|
help
|
|
When the application starts, automatically register data ready trigger
|
|
listeners to all available sensors.
|