Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not use both FreeRTOS and Delay_Us #67

Open
myjtag opened this issue Jun 10, 2023 · 4 comments
Open

Can not use both FreeRTOS and Delay_Us #67

myjtag opened this issue Jun 10, 2023 · 4 comments

Comments

@myjtag
Copy link

myjtag commented Jun 10, 2023

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
Copy link

Just my opinion - should you not be using vTaskDelay()?

@myjtag
Copy link
Author

myjtag commented Jun 21, 2023

I want to use micro second delays

@alexpa940
Copy link

I want to use micro second delays

You can switch the freertos to interrupts of some other timer and continue using systick for delays.

@myjtag
Copy link
Author

myjtag commented Jul 13, 2023

the systick is used for freertos, and unfortunately I can not find some critical parts of freertos code in the project to modify it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants