Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Another thread already exists on this topic

???
03/07/09 18:09
Read: times


 
Msg Score: -1
 -1 Didn't Search First
#163206 - I need some helo with this code
I have a code to solve about FSM, and I need if somebody can help me with this, this code have 4 states, the code is the next.
This code is an exam, therefore I can“t to modified the definition of the states, and it is not the complete code, I just want to know how to evaluate the for states with a "switch case" into the "while(1)".

#define QUIET 0
#define WAITING_APLICATION 1
#define APLICATION 2
#define END_APLICACION 3

void main (void)
{



/*(1) Complete */

while(1)
{
Here I need to evaluate the states (QUIET, WAITING_APLICATION, APLICATION, END_APLICATION) with switch case.

}
}

List of 4 messages in thread
TopicAuthorDate
I need some helo with this code            01/01/70 00:00      
   maybe if            01/01/70 00:00      
      Finite State Machine            01/01/70 00:00      
   switch basics?            01/01/70 00:00      

Back to Subject List