Hello,
I’m working on a project that requires multiple ADC channels. I followed this example and got ADC_0 working. However, after compiling, according to the device tree file zephyr.dts
, only "ADC_0"
is configured automatically:
adc: adc@e000 {
compatible = "nordic,nrf-saadc";
reg = < 0xe000 0x1000 >;
interrupts = < 0xe 0x1 >;
status = "okay";
label = "ADC_0";
#io-channel-cells = < 0x1 >;
phandle = < 0x4 >;
};
Following the example to set CONFIG_ADC_5
in prj.conf
didn’t work
CONFIG_ADC=y
CONFIG_ADC_5=y
CONFIG_ADC_NRFX_SAADC=y
Using these configs in prj.conf
will return
/home/nfed/prj.conf:60: warning: attempt to assign the value 'y' to the undefined symbol ADC_5
I wonder how do I enable other ADC channels? Is it possible to do it through the .overlay
file?
Thank you
Ron Zeman