01.06.2013 Views

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

IPC@CHIP Documentation - SC12 @CHIP-RTOS V1.10

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.

<strong>RTOS</strong> Application Developers Note - <strong>SC12</strong> <strong>@CHIP</strong>-<strong>RTOS</strong> <strong>V1.10</strong><br />

<strong>IPC<strong>@CHIP</strong></strong> <strong>Documentation</strong> Index <strong>RTOS</strong> News<br />

<strong>@CHIP</strong>-<strong>RTOS</strong> Application Notes<br />

<strong>RTOS</strong> API Listing<br />

Developer Notes<br />

The provided services are a subset of the <strong>RTOS</strong> calls. If it should be necessary, we will add needed<br />

functions in the future. The given examples should be used and modified by the API programmer. The<br />

API programmer should know something about the basics of programming multitasking applications!!<br />

It's very important to declare large enough task stack. The example taskexp1 shows this problem.<br />

When the program is compiled with Microsoft C V1.52, we must set the stack size of the tasks to 3072<br />

words. The same program compiled with Borland 4.52 requires only a stack size of 512 words. It's not<br />

advised to use the printf functions in a task procedure because it requires a lot of stack space. In the<br />

example program taskexp1.exe, we use printf calls and it works, but there is no guarantee that it will<br />

work in other applications. Timer procedures are executed on the stack of the kernel task, so they<br />

should be as short as possible. Avoid the calling of large C-Library functions like printf.<br />

Task priorities:<br />

We recommend the usage of a task priority between 20 and 30, because a task with a higher priority is<br />

able to block other important tasks of our system. e.g. the serial and Ethernet receiver tasks.<br />

End of document<br />

Page 247 / 400

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

Saved successfully!

Ooh no, something went wrong!