We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
I learned from http://www.keil.com/support/docs/3008.htm: a) It is not possible to mix the wait method os_itv_wait() and os_dly_wait(). b) It is possible to mix os_evt_wait_or(0x0001, 0xffff) (without timeout!) and os_dly_wait(). But is it possible in RTX to use os_evt_wait_or(0x0001, 100) (with timeout!) and os_dly_wait() in the same task? e.g.:
void task1 (void) _task_ 1 { while (1) { os_evt_wait_or (0x0001, 100); // wait for event flag set or timeout (100 ticks) ... // some code os_dly_wait (10); // wait here for 10 ticks ... } } void task2 (void) _task_ 2 { ... if (...) { os_evt_set (0x0001, id1); // send event to task 1 } }
Or is it impossible because of the same timer is used for both delays in task 1?
Thanks in advance for your answers, Norbert