[En-Nut-Discussion] ADC on STM32
Ole Reinhardt
ole.reinhardt at embedded-it.de
Thu Nov 24 16:08:15 CET 2016
Hi Uwe, Hi Krzysztof,
indeed I introduced the old ADC API for AVRs and later ported it to the
AT91 ARMs. On other platforms I never used the ADC API.
I do not need the old style API any more and therefor I'm open to any
new suggestions.
@Krzysztof: I'd be happy about any contribution.
Best regards,
Ole Reinhardt
Am 22.11.2016 um 19:51 schrieb Uwe Bonnes:
>>>>>> "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.
>
> Hello,
>
> 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.
>
> Bye
>
--
Embedded-IT
Alter Weg 3
57223 Kreuztal
http://www.embedded-it.de
Tel.: +49-177-7420433
More information about the En-Nut-Discussion
mailing list