Hi Grr,

It is not a simple challenge even using a microcontroller running a
baremetal busy loop code, let alone using a RTOS. More info:

https://forum.allaboutcircuits.com/threads/programming-a-1-ns-delay-for-microcontroller-processor.90227/

It is better to have a dedicated hw taking care of the ns-resolution
delays and using the RTOS to control and gather the resulted data.

What are trying to achive? (of course if can share or talk about it).

BR,

Alan

On 3/24/21, Grr <gebbe...@gmail.com> wrote:
> Hello to all.
>
> Looking for the right way to create a _very_ short delay (10-100 ns), I
> found clock_nanosleep, whose description says:
>
> "The suspension time caused by this function may be longer than requested
> because the argument value is rounded up to an integer multiple of the
> sleep resolution"
>
> What is the sleep resolution and where/how is defined?
>
> TIA
> Grr
>

Reply via email to