cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to make microsecond delay in freertos

Mijta
Associate

I need 40 us delay. I made my own function using timers, which works on NUCLEO, just using it in main. Now that I put my program my circuit, I moved that SPI part on freertos, but now I have problem, because that delay doesnt work anymore. I would use osDelay, but that is only ms and I need us. Why my delay using timers doesnt work and is there any other way to make it. Thank you for help. 

Mijta_0-1711049470365.png

Mijta_1-1711049524663.png

 

 

 

1 REPLY 1

Well resetting at every entry isn't exactly thread safe.

Read the value at entry, and compare the delta, I'd cut-n-paste-n-edit but hard to do with bitmaps.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..