Skip to content

Commit 8a16afc

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

File tree

4 files changed

+40
-0
lines changed

4 files changed

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

samples/sensor/accel_polling/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,17 @@ tests:
2626
- b_l4s5i_iot01a # lsm6dsl
2727
- sensortile_box # lis2dw12, lsm6dso, iisdhhc
2828
- thingy53/nrf5340/cpuapp # adxl362, bmi270
29+
sample.sensor.accel_polling.adxl362-stream:
30+
harness: console
31+
tags: sensors
32+
harness_config:
33+
type: one_line
34+
regex:
35+
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m\/s\\^2\\]: \
36+
\\(\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
37+
extra_args:
38+
- SHIELD=eval_adxl362_ardz
39+
- EXTRA_CONF_FILE=adxl362-stream.conf
40+
- SNIPPET=rtt-tracing;rtt-console
41+
platform_allow:
42+
- apard32690/max32690/m4
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_ADXL362_TRIGGER_OWN_THREAD=y
5+
CONFIG_ADXL362_ACCEL_ODR_400=y

samples/sensor/accel_trig/sample.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,17 @@ tests:
1212
\\(\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
1313
integration_platforms:
1414
- frdm_k64f # fxos8700
15+
sample.sensor.accel_trig.adxl362-trigger:
16+
harness: console
17+
tags: sensors
18+
harness_config:
19+
type: one_line
20+
regex:
21+
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m\/s\\^2\\]: \
22+
\\(\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*,\\s*-?[0-9\\.]*\\)$"
23+
extra_args:
24+
- SHIELD=eval_adxl362_ardz
25+
- EXTRA_CONF_FILE=adxl362-trigger.conf
26+
- SNIPPET=rtt-tracing;rtt-console
27+
platform_allow:
28+
- apard32690/max32690/m4

0 commit comments

Comments
 (0)