Re: Short delay

2023-01-28 Thread Nathan Hartman
On Sat, Jan 28, 2023 at 9:04 AM Gregory Nutt wrote: > On 1/28/2023 7:15 AM, Max Kriegleder wrote: > > I am using the tickless OS setting with 1 USEC_PER_TICK and ultimately > > I want to control a stepper motor where I need to delay toggling of > > pins for very short and accurate amounts of time

Re: Short delay

2023-01-28 Thread Gregory Nutt
On 1/28/2023 7:15 AM, Max Kriegleder wrote: I am using the tickless OS setting with 1 USEC_PER_TICK and ultimately I want to control a stepper motor where I need to delay toggling of pins for very short and accurate amounts of time to achieve a certain movement profile of the motor - just for i

Short delay

2023-01-28 Thread Max Kriegleder
Hi All, For a specific use case I need to delay execution on the the order of 100 - 1 us. The obvious choice would be usleep however I noticed that depending on the platform I get something like 124-140 us instead of 100 us delay. I have created an issue on github for this https://github.