17.02.2015 Views

CCS C Compiler Manual PCB / PCM / PCH

Create successful ePaper yourself

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

Built-in Functions<br />

rtos_run( )<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_run()<br />

None<br />

None<br />

This function begins the execution of all enabled RTOS tasks. This<br />

function controls the execution of the RTOS tasks at the allocated rate for<br />

each task. This function will return only when rtos_terminate() is called.<br />

All devices<br />

#USE RTOS<br />

rtos_run()<br />

rtos terminate()<br />

rtos_signal( )<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_signal (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<br />

increments sem to let waiting tasks know that a shared resource is<br />

available for use.<br />

All devices<br />

#USE RTOS<br />

rtos_signal(uart_use)<br />

rtos wait()<br />

261

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

Saved successfully!

Ooh no, something went wrong!