Can not use both FreeRTOS and Delay_Us
myjtag opened this issue · comments
ASiDesigner commented
Hi,
your Delay_Us can not be used when using FreeRTOS, it would ruin the Freertos, since it would modify the systick, I think you should use something like this
loop while (endTime - currentTime) > 0
ArduinoShop commented
Just my opinion - should you not be using vTaskDelay()?
ASiDesigner commented
I want to use micro second delays
Alexey Podvoyskiy commented
I want to use micro second delays
You can switch the freertos to interrupts of some other timer and continue using systick for delays.
ASiDesigner commented
the systick is used for freertos, and unfortunately I can not find some critical parts of freertos code in the project to modify it