openwch / ch32v307

Including the SDK、HDK、Datasheet of RISC-V MCU CH32V307 and other relevant development materials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not use both FreeRTOS and Delay_Us

myjtag opened this issue · comments

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

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

I want to use micro second delays

I want to use micro second delays

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

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