Soft timer implement!

How to implement soft timer using freertos? My task want to implement  one-shot timer and periodic timer.

Soft timer implement!

I presume you use a hardware peripheral, just like the kernel uses a timer to generate the periodic tick?   Is this what you mean?  Alternatively you could use a tick hook for periodic processing.

Soft timer implement!

Oh! YES! I just want to use tick hook. But I don’t know tick hook whether or not influence the kernel performance.