sensor_shell: Update to new sensor_read API

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>
This commit is contained in:
Yuval Peress
2023-04-26 01:13:33 -06:00
committed by Maureen Helm
parent ed380de152
commit ca5bf10143
11 changed files with 235 additions and 124 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ kobjects = OrderedDict([
("ztest_test_rule", ("CONFIG_ZTEST_NEW_API", True, False)),
("rtio", ("CONFIG_RTIO", False, False)),
("rtio_iodev", ("CONFIG_RTIO", False, False)),
("sensor_decoder_api", ("CONFIG_SENSOR", True, False))
("sensor_decoder_api", ("CONFIG_SENSOR_ASYNC_API", True, False))
])
def kobject_to_enum(kobj):