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.

Example Files:<br />

Also See:<br />

None<br />

malloc(), free(), calloc()<br />

release_io()<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

release_io();<br />

none<br />

nothing<br />

The function releases the I/O pins after the device wakes up from deep<br />

sleep, allowing<br />

the state of the I/O pins to change<br />

Devices with a deep sleep module.<br />

Nothing<br />

unsigned int16 restart;<br />

restart = restart_cause();<br />

if(restart == RTC_FROM_DS)<br />

release_io();<br />

None<br />

sleep()<br />

reset_cpu( )<br />

Syntax:<br />

Parameters:<br />

Returns:<br />

Function:<br />

Availability:<br />

Requires:<br />

reset_cpu()<br />

None<br />

This function never returns<br />

This is a general purpose device reset. It will jump to location 0 on <strong>PCB</strong> and<br />

<strong>PCM</strong> parts and also reset the registers to power-up state on the PIC18XXX.<br />

All devices<br />

Nothing<br />

252

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

Saved successfully!

Ooh no, something went wrong!