11.07.2015 Views

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

IAR PowerPac RTOS User Guide

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The scheduler deactivates the task to be suspended (Task 0) by saving the processor registers on its stack. It thenactivates the higher-priority task (Task n) by loading the stack pointer (SP) and the processor registers from the valuesstored on Task n's stack.Task 0Task nTask ControlblockStackTask ControlblockStackvariablestemp. storagevariablestemp. storageret. addressesret. addressesSPCPUregistersSPCPUregistersFree StackareaFree StackareaSchedulerCPUChange of task statusA task may be in one of several states at any given time. When a task is created, it is automatically put into the READYstate (TS_READY).A task in the READY state is activated as soon as there is no other READY task with higher priority. Only one taskmay be active at a time. If a task with higher priority becomes READY, this higher priority task is activated and thepreempted task remains in the the READY state.18<strong>IAR</strong> <strong>PowerPac</strong> <strong>RTOS</strong>for ARM CoresPP<strong>RTOS</strong>-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!