Quality RTOS & Embedded Software

KERNEL
WHAT'S NEW
AWS Reference Integrations
FreeRTOS SMP:
FreeRTOS security certification:
Embedded World track keynote:

RTOS Context Switch - Step 5
[Detailed Example]

The TaskB stack pointer is retrieved

AtoB4.gif

The TaskB context must be restored. The first thing RTOS macro portRESTORE_CONTEXT does is retrieve the TaskB stack pointer from the copy taken when TaskB was suspended. The TaskB stack pointer is loaded into the processor stack pointer, so now the AVR stack points to the top of the TaskB context.



Next: RTOS Implementation - Detailed Example Step 6


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