Skip to content

Commit ff47bee

Browse files
committed
samples: sensor: Add adxl345 streaming and trigger configurations
Adds adxl345 streaming and trigger configurations to accelerometer samples for profiling the performance impact of adding rtio support to max32 spi and adxl345 accelerometer drivers. Signed-off-by: Maureen Helm <[email protected]>
1 parent def103a commit ff47bee

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_SPI_RTIO=y
5+
CONFIG_SENSOR_ASYNC_API=y

samples/sensor/accel_polling/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,10 @@ tests:
3434
- SNIPPET=rtt-tracing;rtt-console
3535
platform_allow:
3636
- apard32690/max32690/m4
37+
sample.sensor.accel_polling.adxl345-stream:
38+
extra_args:
39+
- SHIELD=pmod_acl
40+
- EXTRA_CONF_FILE=adxl345-stream.conf
41+
- SNIPPET=rtt-tracing;rtt-console
42+
platform_allow:
43+
- apard32690/max32690/m4
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copyright (c) 2024 Analog Devices, Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
CONFIG_ADXL345_TRIGGER_OWN_THREAD=y

samples/sensor/accel_trig/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ tests:
2020
- SNIPPET=rtt-tracing;rtt-console
2121
platform_allow:
2222
- apard32690/max32690/m4
23+
sample.sensor.accel_trig.adxl345-trigger:
24+
extra_args:
25+
- SHIELD=pmod_acl
26+
- EXTRA_CONF_FILE=adxl345-trigger.conf
27+
- SNIPPET=rtt-tracing;rtt-console
28+
platform_allow:
29+
- apard32690/max32690/m4

0 commit comments

Comments
 (0)