2024-03-21 12:33 PM - last edited on 2024-04-09 06:18 AM by Amel NASRI
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.
2024-03-21 02:48 PM
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.