Hello I'm a newer to RL-ARM and I found that there're two wait function os_itv_wait and os_dly_wait in RL-ARM. Who can tell me what's the difference between them? For example is it possible to replace os_dly_wait(20) by os_itv_set(20); os_itv_wait()? Thanks.
Note that os_dly_wait() starts the timer from when it's called. This can result in a time drift for a periodic function.
Note also that a task may not use both os_itv_wait() and os_dly_wait(). They are mutually exclusive.
Thanks Mr Westermark for your answer. Can you tell me when the os_itv_wait() starts the timer?
Since it is a periodic timer, it counts from os_itv_set() and will restart continuously without any gap while your task runs.
Have you looked at the documentation in the keil directory on your hdd or the online manual on this site?