Skip to content

Commit bfbb971

Browse files
henrikbrixandersencfriedt
authored andcommitted
samples: drivers: adc: sequence: use fully qualified board names
Use fully qualified boards names for boards with more than one SoC. Signed-off-by: Henrik Brix Andersen <[email protected]>
1 parent 6dab9df commit bfbb971

File tree

4 files changed

+31
-0
lines changed

4 files changed

+31
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CONFIG_SEQUENCE_RESOLUTION=12
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
* Copyright (c) 2024 Centro de Inovacao EDGE
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/ {
8+
aliases {
9+
adc0 = &afec0;
10+
};
11+
};
12+
13+
&afec0 {
14+
#address-cells = <1>;
15+
#size-cells = <0>;
16+
17+
channel@0 {
18+
reg = <0>;
19+
zephyr,gain = "ADC_GAIN_1";
20+
zephyr,reference = "ADC_REF_INTERNAL";
21+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
22+
};
23+
24+
channel@8 {
25+
reg = <8>;
26+
zephyr,gain = "ADC_GAIN_1";
27+
zephyr,reference = "ADC_REF_INTERNAL";
28+
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
29+
};
30+
};

0 commit comments

Comments
 (0)