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 15, 2024
1 parent da6c10b commit 0602460
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 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,20 @@
status = "okay";
};

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

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 0602460

Please sign in to comment.