Question: Which line in Text 1 sets a variable to tell the state machine to initialize when the program starts running A. 53 B. 19 C.
Which line in Text 1 sets a variable to tell the state machine to initialize when the program starts running
A. 53
B. 19 C. 74

67. int TickFct BlinkLed (int state) 68. VARIABLES MUST BE DECLARED STATIC 69. /se.z, static int x0:/ 70. /Def ine user variables for this state nachine here 71 sitch(state) II 2. This code vas aut onat i cally enerated using the Riverside Irvine State nachine BuiIder tool 3. Version 2.5 10/18/2012 10:2:14 PST 6.#include "rias.h" 13 break: case BL Ledoff: 9. /*This code will be shared between state .achines.*/ 10. typedef struct task I 1 int state: 12. unsigned long period; 13 unsigned long elapsedTine; 14. int (TickFct)(int); 15. task; 75 76 state BL Ledon; break: case BL Ledon state BL LedOff: break: state= -I; 17. tak tasks[2]; 84. 19. const unsigned char tasksNu2; 20. const unsigned long period Blinkled= 1501); 21. const unsigned long period ThreeLeds500; default: l II Trans it ions 23. const unsigned long t asksPeriodGCD 500 89. sitch(state) II case BL Ledoff: 25. int TickFet BlinkLed (int state) 26 nt TickFct ThreeLeds (int state); 27 28. unsi zned char process ingRdy Tasks O 29. void TinerISRO 30 unsigned chari; 3 if (processingRdyTasks) I 80-0: break: case BL Ledon: break; deanit: // printf (Period too short to cosplete tasksn) break: 98. II State actions 99. BL State state: 100 return state: 34. 35. 36 37 process inaRdy Tasks=1; for (i = 0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
