Skip to content

Commit 233be2e

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 053a044 commit 233be2e

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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
6+
CONFIG_ADXL345_STREAM=y

samples/sensor/accel_polling/sample.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ tests:
2727
- b_l4s5i_iot01a # lsm6dsl
2828
- sensortile_box # lis2dw12, lsm6dso, iisdhhc
2929
- thingy53/nrf5340/cpuapp # adxl362, bmi270
30+
sample.sensor.accel_polling.adxl345-stream:
31+
extra_args:
32+
- SHIELD=pmod_acl
33+
- EXTRA_CONF_FILE=adxl345-stream.conf
34+
- SNIPPET=rtt-tracing;rtt-console
35+
platform_allow:
36+
- apard32690/max32690/m4
3037
sample.sensor.accel_polling.adxl362-stream:
3138
extra_args:
3239
- SHIELD=eval_adxl362_ardz
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
@@ -23,6 +23,13 @@ tests:
2323
- disco_l475_iot1
2424
- stm32l562e_dk
2525
- stm32wb5mm_dk
26+
sample.sensor.accel_trig.adxl345-trigger:
27+
extra_args:
28+
- SHIELD=pmod_acl
29+
- EXTRA_CONF_FILE=adxl345-trigger.conf
30+
- SNIPPET=rtt-tracing;rtt-console
31+
platform_allow:
32+
- apard32690/max32690/m4
2633
sample.sensor.accel_trig.adxl362-trigger:
2734
extra_args:
2835
- SHIELD=eval_adxl362_ardz

0 commit comments

Comments
 (0)