11.07.2015 Views

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

CrossWorks for ARM User Guide

SHOW MORE
SHOW LESS

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

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

Part IIITasking Library TutorialThis section describes the <strong>CrossWorks</strong> Tasking Library which willbe subsequently referred to as the CTL. The CTL provides a multipriority,preemptive, task switching and synchronisation facility.Additionally the library provides timer, interrupt service routineand memory block allocation support.In this section•Overview (page 205). Describes the principles behind theCTL.•Tasks (page 209). Describes how to create CTL tasks, turn themain program into a task and manage tasks.•Event sets (page 213). Describes what a CTL event set is andhow it can be used.•Semaphores (page 217). Describes what a CTL semphore isand how it can be used.•Message queues (page 221). Describes what a CTL messagequeue is and how it can be used.•Byte queues (page 225). Describes what a CTL byte queue isand how it can be used.•Global interrupts control (page 229). Describes how you canuse CTL functions to enable and disable global interrupts.•Timer support (page 231). Describes the timer facilities thatthe CTL provides.Tasking Library Tutorial

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

Saved successfully!

Ooh no, something went wrong!