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:
Jeppe Odgaard 2024-02-14 10:51:01 +01:00 committed by Anas Nashif
parent b29e8ff0d6
commit b1f2eb9a11
1 changed files with 25 additions and 0 deletions

View File

@ -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>;
};
};