[En-Nut-Discussion] ADC on STM32

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Nov 22 19:51:42 CET 2016

>>>>> "Krzysztof" == Krzysztof Sawicki <krzysztof.sawicki at mlabs.pl> writes:

    Krzysztof> Hi!  Is ADC supported by NutOS on STM32?  I've found
    Krzysztof> documentation at:
    Krzysztof> http://www.ethernut.de/api-beta/stm32__adc_8c.html but I
    Krzysztof> don't see implementation on SVN.


the stm32_adc.c file was probably copied from
arch/arm/dev/atmel/at91_adc.c and probably never compiled for STM32. The
file contains none-existing register definitions, like ADC_CHDR. As there
also was no app example file showing the usage of the ADC api, I deleted
that file about 3 years ago with SVN commit @5371.

In my designs, I mostly use the ADC with DMA, triggered by some timer, with
different sampling times. I did not feel like the the given "ADC Api" would
fit for that purpose...

It seems that Ole introduced the ADC Api.

Ole, are you still using that API? Perhaps on different designs? Perhaps
with some at least semi-portable example?

In that case, it might make sense to implement that driver. If you want to
contribute, Krzysztof, you are welcome and I can offer you help.

Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 1623569 ------- Fax. 06151 1623305 ---------

More information about the En-Nut-Discussion mailing list