cancel
Showing results for 
Search instead for 
Did you mean: 

Please can someone point me to ADC sample code for an STM32 running Zephyr. Im using an STM32L476.

RWatt.1
Associate

Hi, Im a newbie to ZEPHR and would like to test the ADC feature, I just want to be able to read the voltage level on an I/O pin. I have been unable to find sample code. Any help would be appreciated.

2 REPLIES 2
TDK
Guru

It looks like Zephyr is an RTOS. Can't you just use the STM32CubeL4 examples to interface with the ADC? I guess the only interconnection between the two would be SysTick.

https://github.com/STMicroelectronics/STM32CubeL4/tree/master/Projects

If you feel a post has answered your question, please click "Accept as Solution".
RWatt.1
Associate

Thank you for the link. I will have a look but was hoping that someone had already pulled together sample code with the appropriate overlay and prj files for Zephyr just to get me started.