Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please ASAP 1. include rims.h state BL Ledoft typedef struct task 80 int state: state-1: I Transitions 6. nsigned long period: unsigned long elapsedTime int
Please ASAP
1. include "rims.h" state BL Ledoft typedef struct task 80 int state: state-1: I Transitions 6. nsigned long period: unsigned long elapsedTime int (TickFct) (int): 84 switch (state) case BI Ledoff: 11. task tasks [21 87 case BL Ledon: 13. const unsigned char tasksNum 2: 14. const unsigmed long periodB1inkted- 1500 15. const unsigned long periodThreeLeds 500: B0-1: break: 90 default 92 93 / State actions 94 return state 17. const unsigned long tasksPeriodGCD 500; 19. int TickFct BlinkLed(int state) 20. int rickFet ThreeLeds (int state): 96 97 98. enum TL_States TL TO, TL_Tl, TL_T2) TL State: 99. int TickFct Threeteds (int state) 22. unsigned char processingRdyTasks 0 23. void TimerISRO 24 unsigned char i 25. if (process ingRdytasks) VARIABLES MUST BE DECLARED STATIC/ se.g, static intx-0: /variables for state machine go here.* printf ("period too short In") 103. switch (state) case -1: 28. processingRdyTasks-1 29. for-0: iStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started