Question: Problem # 8 ( 1 5 points ) : An LED was used, and its GPIO user configuration in RTOS was properly predefined separately. The
Problem # points: An LED was used, and its GPIO user configuration in RTOS was properly predefined separately. The names to access pins are configured as BoardLED and BoardLED LEDs and resistors are connected to these pins as shown on the right side. It is assumed that the values of the resistors are properly chosen for the proper brightness of the LEDs, when they are tuned on A TI RTOS program was created for this test circuit as shown on the next page. In this RTOS program, the tick period was configured as mu s Describe the behaviors of both LEDs, when the TI RTOS program is executing. You can answer it as ON OFF, or Blink. If your answer is Blink, make sur Make sure to include derivations andor explanati Headers and user driver configuration were not shown but properly defined unsigned int test ; Void taskFxnUArg arg while SemaphorependsemHandle BIOSWAITFOREVER; GPIOtoggleBoardLED; if test&x GPIOwriteBoardLEDO, BoardLEDON; TasksleepUIntarg; test ; SemaphorepostsemHandle; Void taskFxnUArg arg while SemaphorependsemHandle BIOSWAITFOREVER; GPIOwriteBoardLEDO, BoardLEDOFF; TasksleepUIntarg; test; SemaphorepostsemHandle; int mainvoid TaskParams taskParams, taskParams; SemaphoreParams semParams; BoardinitGeneral; BoardinitGPIO; GPIOwriteBoardLEDO, BoardLEDOFF; GPIOwriteBoardLED BoardLEDOFF; TaskParamsinit&taskParams; taskParams.arg; taskParams.stackSize TASKSTACKSIZE; taskParams.stack &taskStack; taskParams.priority ; Taskconstruct&taskStruct, TaskFuncPtrtaskFxn &taskParams, NULL; TaskParamsinit&taskParams; taskParams.arg; taskParams.stackSize TASKSTACKSIZE; taskParams.stack &taskStack; taskParams.priority ; Taskconstruct&taskStruct, TaskFuncPtrtaskFxn &taskParams, NULL; SemaphoreParamsinit&semParams; Semaphoreconstruct&semStruct, &semParams; semHandle Semaphorehandle&semStruct; BIOSstart; return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
