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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Event objects................................................................................................................................................... 83Introduction........................................................................................................................................83Event object API function overview ................................................................................................83OS_EVENT_Create() ............................................................................................................................83OS_EVENT_Wait() ...............................................................................................................................84OS_EVENT_WaitTimed().....................................................................................................................84OS_EVENT_Set()..................................................................................................................................85OS_EVENT_Reset() ..............................................................................................................................86OS_EVENT_Pulse() ..............................................................................................................................87OS_EVENT_Get() .................................................................................................................................87OS_EVENT_Delete() ............................................................................................................................87Heap type memory management............................................................................................................... 89Heap type memory manager API reference ..................................................................................89Fixed block size memory pools.................................................................................................................. 91Introduction........................................................................................................................................91Memory pools API reference overview...........................................................................................91OS_MEMF_Create()..............................................................................................................................91OS_MEMF_Delete()..............................................................................................................................92OS_MEMF_Alloc() ...............................................................................................................................92OS_MEMF_AllocTimed().....................................................................................................................92OS_MEMF_Request() ...........................................................................................................................93OS_MEMF_Release()............................................................................................................................93OS_MEMF_FreeBlock()........................................................................................................................94OS_MEMF_GetNumBlocks() ...............................................................................................................94OS_MEMF_GetBlockSize() ..................................................................................................................94OS_MEMF_GetNumFreeBlocks() ........................................................................................................94OS_MEMF_GetMaxUsed()...................................................................................................................95OS_MEMF_IsInPool()...........................................................................................................................95Stacks................................................................................................................................................................ 97Introduction........................................................................................................................................97System stack.......................................................................................................................................97Task stack ...........................................................................................................................................97Interrupt stack ...................................................................................................................................97Stacks API function overview...........................................................................................................98OS_GetStackSpace()..............................................................................................................................98Interrupts......................................................................................................................................................... 99Introduction........................................................................................................................................99Interrupt latency................................................................................................................................99Causes of interrupt latencies ..................................................................................................................99Additional causes for interrupt latencies................................................................................................99Zero interrupt latency.....................................................................................................................100High / low priority interrupts .........................................................................................................100Rules for interrupt handlers............................................................................................................101General rules ........................................................................................................................................101Additional rules for preemptive multitasking ......................................................................................101Calling <strong>IAR</strong> <strong>PowerPac</strong> <strong>RTOS</strong> routines from within an ISR .........................................................101Interrupts API function overview.........................................................................................................102OS_EnterInterrupt() .............................................................................................................................1028<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!