RTOS Context Switch – Step 2
The RTOS tick interrupt occurs
The RTOS tick occurs just as TaskA is about to execute an LDI instruction. When the interrupt occurs the AVR microcontroller automatically places the current program counter (PC) onto the stack before jumping to the start of the RTOS tick ISR.
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.