Browse Source
Add board-specific overlay file for the adc_dt sample on the STM32F0-DISCO board to enable ADC channel support. Signed-off-by: Sudarsan N <sudarsansamy2002@gmail.com>pull/90684/head
3 changed files with 41 additions and 0 deletions
@ -0,0 +1,32 @@ |
|||||||
|
/* |
||||||
|
* Copyright (c) 2025 Sudarsan N |
||||||
|
* |
||||||
|
* SPDX-License-Identifier: Apache-2.0 |
||||||
|
*/ |
||||||
|
|
||||||
|
/{ |
||||||
|
zephyr,user { |
||||||
|
io-channels = <&adc1 0>, <&adc1 1>; |
||||||
|
}; |
||||||
|
}; |
||||||
|
|
||||||
|
&adc1 { |
||||||
|
#address-cells = <1>; |
||||||
|
#size-cells = <0>; |
||||||
|
|
||||||
|
channel@0 { |
||||||
|
reg = <0>; |
||||||
|
zephyr,gain = "ADC_GAIN_1"; |
||||||
|
zephyr,reference = "ADC_REF_INTERNAL"; |
||||||
|
zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; |
||||||
|
zephyr,resolution = <12>; |
||||||
|
}; |
||||||
|
|
||||||
|
channel@1 { |
||||||
|
reg = <1>; |
||||||
|
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