Skip to content

Commit

Permalink
samples: sensor: enable sensor trigger
Browse files Browse the repository at this point in the history
1. enable sensor trigger.
2. add a fixture for cases, as some platform need
   special rework.

Signed-off-by: Hake Huang <[email protected]>
  • Loading branch information
hakehuang committed Dec 12, 2024
1 parent 5d2068f commit 3b95329
Show file tree
Hide file tree
Showing 25 changed files with 54 additions and 0 deletions.
2 changes: 2 additions & 0 deletions samples/sensor/accel_trig/boards/frdm_k82f_mk82f25615.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
2 changes: 2 additions & 0 deletions samples/sensor/accel_trig/boards/frdm_kl25z_mkl25z4.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
2 changes: 2 additions & 0 deletions samples/sensor/accel_trig/boards/frdm_kw41z_mkw41z4.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
1 change: 1 addition & 0 deletions samples/sensor/accel_trig/boards/frdm_mcxc242_mcxc242.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXLS8974_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXLS8974_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# check the fxos8700 dts for this board for addition settings
#

CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#
# check the fxos8700 dts for this board for addition settings
#

CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
2 changes: 2 additions & 0 deletions samples/sensor/accel_trig/boards/twr_ke18f_mke18f16.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
2 changes: 2 additions & 0 deletions samples/sensor/accel_trig/boards/twr_kv58f220m_mkv58f24.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
1 change: 1 addition & 0 deletions samples/sensor/accel_trig/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tests:
tags: sensors
filter: dt_alias_exists("accel0")
harness_config:
fixture: fixture_sensor_accel_int
type: one_line
regex:
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\[m\/s\\^2\\]: \
Expand Down
1 change: 1 addition & 0 deletions samples/sensor/magn_trig/boards/frdm_k82f_mk82f25615.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
1 change: 1 addition & 0 deletions samples/sensor/magn_trig/boards/frdm_kw41z_mkw41z4.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# check the fxos8700 dts for this board for addition settings
#

CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#
# check the fxos8700 dts for this board for addition settings
#

CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
CONFIG_FXOS8700_MODE_ACCEL=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
1 change: 1 addition & 0 deletions samples/sensor/magn_trig/boards/twr_ke18f_mke18f16.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CONFIG_FXOS8700_TRIGGER_OWN_THREAD=y
1 change: 1 addition & 0 deletions samples/sensor/magn_trig/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ tests:
tags: sensors
filter: dt_alias_exists("magn0")
harness_config:
fixture: fixture_sensor_accel_int
type: one_line
regex:
- "^\\s*[0-9A-Za-z_,+-.]*@[0-9A-Fa-f]* \\(x, y, z\\): \
Expand Down

0 comments on commit 3b95329

Please sign in to comment.