zephyr/samples/drivers/adc/adc_dt/boards/gd32f450i_eval.overlay

26 lines
440 B
Plaintext

/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright (c) 2022 BrainCo Inc.
*/
/ {
zephyr,user {
/* adjust channel number according to pinmux in board.dts */
io-channels = <&adc0 13>;
};
};
&adc0 {
#address-cells = <1>;
#size-cells = <0>;
channel@d {
reg = <13>;
zephyr,gain = "ADC_GAIN_1";
zephyr,reference = "ADC_REF_INTERNAL";
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>;
zephyr,resolution = <12>;
};
};