LibreSolar / charge-controller-firmware

Firmware for Libre Solar MPPT/PWM charge controllers
https://libre.solar/charge-controller-firmware/
Apache License 2.0
144 stars 71 forks source link

Implement ADC 1 & 2 using low level APIs #89

Closed azeemshatp closed 4 years ago

azeemshatp commented 4 years ago

What does this PR do? Implemented ADC 1 & 2 using low level STM32 APIs. DTS, Kconfig and pinmux configurations of "mppt_2420_hpx" board are also changed for the future support of ADC2 in Zephyr framework.

What are the relevant tickets? NA

Where should the reviewer start? The file daq_zephyr.c

How should this be manually tested? ADC 1 & 2 values must be updated automatically by DMA interrupt routines.

Any background context you want to provide? The STM32 LL drivers are used to implement ADC since the Zephyr drivers do not support ADC2 yet. Once the Zephyr updates this, we may switch back to the zephyr APIs.