Cant build zephyr battery example

Hi,

I was trying to build the zephyr battery example Battery Voltage Measurement — Zephyr Project Documentation (nordicsemi.com) . But when I was building the project, it raises an error like this:

note: in expansion of macro 'DEVICE_DT_GET'

78 | .adc = DEVICE_DT_GET(DT_IO_CHANNELS_CTLR(ZEPHYR_USER)),

What should I do? Or is there any way to read/calculate/measure the input voltage to a pin?

Related