samples: drivers: adc: add nucleo_h563zi
Add Nucleo H563ZI board support to ADC sample. Signed-off-by: Jeppe Odgaard <jeppe.odgaard@prevas.dk>
This commit is contained in:
parent
b29e8ff0d6
commit
b1f2eb9a11
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Copyright (c) 2024, Vitrolife A/S
|
||||
*/
|
||||
|
||||
/ {
|
||||
zephyr,user {
|
||||
/* CN9 pin 1 */
|
||||
io-channels = <&adc1 3>;
|
||||
};
|
||||
};
|
||||
|
||||
&adc1 {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
channel@3 {
|
||||
reg = <3>;
|
||||
zephyr,gain = "ADC_GAIN_1";
|
||||
zephyr,reference = "ADC_REF_INTERNAL";
|
||||
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
|
||||
zephyr,resolution = <12>;
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue