Professional Documents
Culture Documents
Star
t
Timer Initialization
LED Initialization
UART0
Initialization
Create five
Mailboxes
Create one Semaphore for
using Timer
Create five tasks
OSStart
Task0
Task1
Task2
Task3
Task5
Start Task
5
yes
If
val =
1?
no
yes
If
val =
2?
Wheel 1 is
locked
Wheel 1 and
wheel 2 are
locked
no
yes
If
val =
3?
no
If
val =
4?
Repeat process of
getting value from
channels
yes
wheel 1, wheel 2
and wheel 3 are
locked is locked