Utilize the following code seqments for Problems A 5. Void Task_Flash(void) { If ( left(mathrm{g}_{text {flash_LED }}==1right) ) // Switch #1 Pressed Contro_RGB_LEDs (1,1,1); Delay(g_w_delay): Contro_RGB_LEDs (0,0,0); Delay(B_w_delay); Ji fir Void Task_RGB(void) { If (B_flash_LED ==0 ) { // Switch #1 Released Contro_RGB_LEDs (1,0,0); Delay(B_RGB_delay); Contro_RGB_LEDS (0,1,0); Delay(g_RGB_delay): Contro_RGB_LEDs (0,0,1); Delay(B_RGB_delay); } } Void Flasherf(void) i While (1) f Task_Flash(); Task RGB(); bi };5. Consider the approach from the section titled Task Preemption and reference the diagram below. Assume that the IRQ handler can tell the scheduler to change which task to run, and that tasks can preempt each other. Assume that PORTD_IRQHandler starts executing as soon as the switch changes from pressed to released, or from released to pressed. Assume there is no time taken to switch between tasks or the handler, and that the tasks and handier have the following execution times: a. Describe the sequence of events which leads to the maximum delay between pressing the switch and seeing the LED flash sequence. Calculate the value of that delay, and indicate all assumptions that you are making in regards to your solution. (5 Points)b. Describe the sequence of events which leads to the maximum delay between pressing the switch and seeing the LED RGB color sequence. Calculate the value of that delay. ( 5 Points).