Mark Zachmann
1 min readJun 7, 2020

--

Hi Ivan,

It’s funny you should ask that. The latest Zephyr api has changed the way they do naming and I’ve been refactoring code, for the better I think. I should update the text… but for now I’m currently using this syntax:

#define ADC_DEVICE_NAME DT_LABEL(DT_ALIAS(adcctrl))

where there is a device with alias adcctrl in my dtsi file.

adcctrl = &adc;

I’ll try to update the source soon.

Mark

--

--

Mark Zachmann
Mark Zachmann

Written by Mark Zachmann

Entrepreneur, software architect, electrical engineer. Ex-academic.

No responses yet