This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Switching a task

can somebody kindly give me a good explanation on usage of "os_tsk_pass()".
i really dont know why i cant find a valid method to pass the execution to a task of lower priority.

cant use os_evt_wait_or, because it sets event for only a specific task.

i have this scenario, of regulating the speed of motor. so regulating routine is one task. and there are two other tasks (out of which only one is in the scheduler at any given time). when created and started, both tasks wait for speed regulation. implementation of such a algorithm becomes difficult and i have to specifically check for which task is running and then generate an event accordingly. what a messy situation. stupidly check the global flags and generate events hence increase the number of global flags.

0