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.

}<br />

case 0 : set_uart_speed(2400); break;<br />

case 1 : set_uart_speed(4800); break;<br />

case 2 : set_uart_speed(9600); break;<br />

case 3 : set_uart_speed(19200); break;<br />

Example Files:<br />

Also See:<br />

loader.c<br />

#USE RS232, putc(), getc(), setup uart(), RS232 I/O Overview,<br />

setjmp( )<br />

Syntax:<br />

Parameters:<br />

result = setjmp (env)<br />

env: The data object that will receive the current environment<br />

Returns: If the return is from a direct invocation, this function returns 0.<br />

If the return is from a call to the longjmp function, the setjmp function<br />

returns a nonzero value and it's the same value passed to the longjmp<br />

function.<br />

Function:<br />

Availability:<br />

Requires:<br />

Examples:<br />

Example Files:<br />

Also See:<br />

Stores information on the current calling context in a data object of type<br />

jmp_buf and which marks where you want control to pass on a<br />

corresponding longjmp call.<br />

All devices<br />

#INCLUDE <br />

result = setjmp(jmpbuf);<br />

None<br />

longjmp()<br />

setup_adc(mode)<br />

Syntax:<br />

Parameters:<br />

setup_adc (mode);<br />

setup_adc2(mode);<br />

mode- Analog to digital mode. The valid options vary depending on the<br />

device. See the devices .h file for all options. Some typical options include:<br />

ADC_OFF<br />

ADC_CLOCK_INTERNAL<br />

280

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

Saved successfully!

Ooh no, something went wrong!