Tool/software: TI-RTOS
Hello,
I am current running two tasks task1 and task2. These two tasks refer to global Boolean variables to decide which external functions are executed from within the task. Each task also contains an infinite while loop (while(1)) to continuously execute these functions. What I'm noticing is that the task with the highest priority continuously executes its while loop and calls the external functions, while the task with the lower priority never even begins (I know this by the fact that the called functions would print a message to the screen). How do I switch control between multiple tasks at discrete moments (not based on clock ticks, just Boolean variable states). I want to control the flow of task execution, halting one, allowing the other to execute, then halting that one, and returning to the original (basically a trade off between tasks). Please provide a detailed/thorough explanation as I am quite new to this concept.
Many thanks!
