Download FreeRTOS
 

Quality RTOS & Embedded Software

KERNEL
WHAT'S NEW
FreeRTOS website now available in Simplified Chinese
New FreeRTOS Long Term Support version now available.
FreeRTOS Extended Maintenance Program (EMP) registration now open.
FreeRTOS-Plus-TCP v3.0.0 released:
Featured FreeRTOS IoT Integrations:

The AVR Context
[RTOS Implementation Building Blocks]

A context switch requires the entire execution context to be saved. On the AVR microcontroller the context consists of:
  • 32 general purpose processor registers. The gcc development tools assume register R1 is set to zero.
  • Status register. The value of the status register affects instruction execution, and must be be preserved across context switches.
  • Program counter. Upon resumption, a task must continue execution from the instruction that was about to be executed immediately prior to its suspension.
  • The two stack pointer registers.

    AVRContext.gif



Next: RTOS Implementation - Saving The Context


Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.