Answer by Ed King for State machine program design in FreeRTOS - Task...
STATE should exist only where it needs to, 'in' the superior task. I'm presuming you're using C, so declare STATE as a static variable in "superior_task.c" (or whatever it's called). This means it can...
View ArticleState machine program design in FreeRTOS - Task managing the state changes
Following on the discussion at State machine program design in FreeRTOS - vTaskStartScheduler in a switch statement, I have a state machine with 4 states, each of them with different tasks reading...
View Article
More Pages to Explore .....