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.

Functional Overview<br />

to be enabled.<br />

rtos_disable(task)<br />

rtos_msg_poll()<br />

rtos_msg_read()<br />

rtos_msg_send(task,byte)<br />

rtos_yield()<br />

rtos_signal(sem)<br />

rtos_wait(sem)<br />

rtos_await(expre)<br />

rtos_overrun(task)<br />

rtos_stats(task,stat)<br />

Disables one of the RTOS tasks. Once a task is disabled,<br />

the rtos_run() function will not call this task until it is<br />

enabled using rtos_enable(). The parameter to this<br />

function is the name of the task to be disabled.<br />

Returns true if there is data in the task's message queue.<br />

Returns the next byte of data contained in the task's<br />

message queue.<br />

Sends a byte of data to the specified task. The data is<br />

placed in the receiving task's message queue.<br />

Called with in one of the RTOS tasks and returns control<br />

of the program to the rtos_run() function. All tasks should<br />

call this function when finished.<br />

Increments a semaphore which is used to broadcast the<br />

availability of a limited resource.<br />

Waits for the resource associated with the semaphore to<br />

become available and then decrements to semaphore to<br />

claim the resource.<br />

Will wait for the given expression to evaluate to true<br />

before allowing the task to continue.<br />

Will return true if the given task over ran its alloted time.<br />

Returns the specified statistic about the specified task.<br />

The statistics include the minimum and maximum times<br />

for the task to run and the total time the task has spent<br />

running.<br />

Relevant Preprocessor:<br />

#USE RTOS(options)<br />

#TASK(options)<br />

#TASK<br />

Relevant Interrupts:<br />

none<br />

This directive is used to specify several different RTOS<br />

attributes including the timer to use, the minor cycle time<br />

and whether or not statistics should be enabled.<br />

This directive tells the compiler that the following function<br />

is to be an RTOS task.<br />

specifies the rate at which the task should be called, the<br />

maximum time the task shall be allowed to run, and how<br />

large it's queue should be<br />

67

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

Saved successfully!

Ooh no, something went wrong!