Skip to content

Commit

Permalink
tests: atmel_sam: adc: Fix sam4e_xpro adc build
Browse files Browse the repository at this point in the history
This add a missing sam4e_xpro overlay in the tests/drivers/adc for the
sam4e_xpro board.

Signed-off-by: Gerson Fernando Budke <[email protected]>
  • Loading branch information
nandojve authored and nordicjm committed Feb 19, 2024
1 parent d81982b commit d896171
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/drivers/adc/adc_api/boards/sam4e_xpro.overlay
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2024 Gerson Fernando Budke <[email protected]>
*/

/ {
zephyr,user {
io-channels = <&afec0 0>;
};
};

&afec0 {
#address-cells = <1>;
#size-cells = <0>;

channel@0 {
reg = <0>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_EXTERNAL0";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
zephyr,input-positive = <15>;
};
};

0 comments on commit d896171

Please sign in to comment.