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.

Structure used in read and write functions are defined in the device<br />

header file as rtc_time_t.<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

void<br />

Writes the date and time to the RTCC module as specified in the structure<br />

date time.<br />

Devices that have the RTCC module.<br />

Nothing.<br />

rtc_write(&datetime);<br />

ex_rtcc.c<br />

Also See: rtc_read() , rtc_alarm_read() , rtc_alarm_write() , setup_rtc_alarm() ,<br />

rtc_write(), setup_rtc()<br />

rtos_await( )<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_await (expre)<br />

expre is a logical expression.<br />

None<br />

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

expre to be true before continuing execution of the rest of the code of<br />

the RTOS task. This function allows other tasks to execute while the task<br />

waits for expre to be true.<br />

All devices<br />

#USE RTOS<br />

rtos_await(kbhit());<br />

None<br />

258

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

Saved successfully!

Ooh no, something went wrong!