17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

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

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

Built-in Functions<br />

program will continue with the first line of code after the rtos_run() call in<br />

the program. (This function causes rtos_run() to return.)<br />

Availability:<br />

Requires:<br />

Examples:<br />

Also See:<br />

All devices<br />

#USE RTOS<br />

rtos_terminate()<br />

rtos run()<br />

rtos_wait( )<br />

The RTOS is only included in the PCW, PCWH and PCWHD software packages.<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Also See:<br />

rtos_wait (sem)<br />

sem is a global variable that represents the current availability of a<br />

shared<br />

system resource (a semaphore).<br />

None<br />

This function can only be used by an RTOS task. This function waits for<br />

sem to be greater than 0 (shared resource is available), then decrements<br />

sem to claim usage of the shared resource and continues the execution<br />

of the rest of the code the RTOS task. This function allows other tasks to<br />

execute while the task waits for the shared resource to be available.<br />

All devices<br />

#USE RTOS<br />

rtos_wait(uart_use)<br />

rtos signal()<br />

rtos_yield( )<br />

The RTOS is only included in the PCW, PCWH and PCWHD software packages.<br />

Syntax:<br />

Parameters:<br />

rtos_yield()<br />

None<br />

263

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

Saved successfully!

Ooh no, something went wrong!