Download FreeRTOS
 

Quality RTOS & Embedded Software

KERNEL
WHAT'S NEW
Simplifying Authenticated Cloud Connectivity for Any Device.
Designing an energy efficient and cloud-connected IoT solution with CoAP.
Introducing FreeRTOS Kernel version 11.0.0:
FreeRTOS Roadmap and Code Contribution process.
OPC-UA over TSN with FreeRTOS.

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.