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.

tos_stats( )<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_stats(task,&stat)<br />

task is the identifier of a function that is being used as an RTOS task.<br />

stat is a structure containing the following:<br />

struct rtos_stas_struct {<br />

unsigned int32 task_total_ticks; //number of ticks the task<br />

has<br />

//used<br />

unsigned int16 task_min_ticks; //the minimum number of<br />

ticks<br />

//used<br />

unsigned int16 task_max_ticks; //the maximum number of<br />

ticks<br />

//used<br />

unsigned int16 hns_per_tick; //us =<br />

(ticks*hns_per_tick)/10<br />

};<br />

Undefined<br />

This function returns the statistic data for a specified task.<br />

All devices<br />

#USE RTOS(statistics)<br />

rtos_stats(echo, &stats)<br />

None<br />

rtos_terminate( )<br />

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

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

rtos_terminate()<br />

None<br />

None<br />

This function ends the execution of all RTOS tasks. The execution of the<br />

262

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

Saved successfully!

Ooh no, something went wrong!