I am trying to understand the concept of 'Context switch' in reference to C-language and 32-bit MCUs.
Do I need to service an Interrupt request for example an interrupt from a periodic timer? So when I will go into the Timer ISR it would imply that the MCU has experienced a full-context switch while jumping to the ISR (Interrupt Handler).
Or Do I need to make a function call? So that when the MCU jumps into a new function that will mean that the MCU has experienced a full-context switch?
Can anyone explain how can I demonstrate a Context-Switch in C-language?