Skip to content

Commit

Permalink
tests: drivers: build_all: input: Add adc-keys
Browse files Browse the repository at this point in the history
* so that it'll be built by the CI

Signed-off-by: Chen Xingyu <hi@xingrz.me>
  • Loading branch information
xingrz committed Feb 8, 2024
1 parent 8b6e32b commit 1c3e660
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/drivers/build_all/input/app.overlay
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,24 @@
status = "okay";
};

adc-keys {
compatible = "adc-keys";
io-channels = <&test_adc 0>;
keyup-threshold-mv = <0>;
button_0 {
press-thresholds-mv = <1500>;
zephyr,code = <0>;
};
button_1 {
press-thresholds-mv = <2500>, <1750>;
zephyr,code = <1>;
};
button_2 {
press-thresholds-mv = <3300>, <1750>;
zephyr,code = <2>;
};
};

gpio-keys {
compatible = "gpio-keys";
debounce-interval-ms = <30>;
Expand Down
4 changes: 4 additions & 0 deletions tests/drivers/build_all/input/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ tests:
extra_configs:
- CONFIG_ADC=y
- CONFIG_SETTINGS=y

drivers.input.adc_keys:
extra_configs:
- CONFIG_ADC=y

0 comments on commit 1c3e660

Please sign in to comment.