Hello forum!
Using software delay routines in a RTOS is not a good idea, because the execution of other tasks is blocked.
But I have some pieces of code where this is done. So I decided to replace them with task_sleep functions. When there argument of the delay_cycles function is small, than it mazbe makes no sense to switch to antohher task instead. But if the argument is big, than it's worth to switch to another task.
Is there a rule of thumb when to choose task_sleep over delay_cycles? I would say if the resulting delay is more than a millisecond, the period of the system clock.
BR Guenther