Maybe you could propose a modification on ADC upper-half driver to enable
overwriting. So, if the FIFO is full the oldest value is replaced by the
new one. This could be an option on the config system.

At this moment I am working on STM32L4 ADC driver. I am implementing the
low level operations, based on STM32 ADC driver. Using low level operations
you don't need to use the upper-half.

Daniel Pereira de Carvalho


Em qua., 21 de out. de 2020 às 15:48, <disruptivesolution...@gmail.com>
escreveu:

> I have implemented a daemon which uses sigaction. And indeed the ADC works
> with this solution until the FIFO is full... Maybe I have to add an IOCT
> that resets the ADC?... Or set the FIFO buffer back? Or make a ringbuffer
> instead of FIFO....
>
> Ben
>
> -----Oorspronkelijk bericht-----
> Van: Nathan Hartman <hartman.nat...@gmail.com>
> Verzonden: woensdag 21 oktober 2020 20:36
> Aan: dev@nuttx.apache.org
> Onderwerp: Re: NuttX and continuous ADC conversion
>
> On Wed, Oct 21, 2020 at 2:26 PM <disruptivesolution...@gmail.com> wrote:
>
> > Thats correct...  so I have to start the conversion every time over
> > again... and het the value after that conversion.... I have seen
> > continuous conversions ADC on an STM32...
> >
> > I will try to find a plausible solution.
> >
>
> Zero latency ISR to read ADC register into memory buffer?
>
>

Reply via email to