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.

<strong>CCS</strong> C <strong>Compiler</strong> <strong>Manual</strong><br />

<strong>PCB</strong> / <strong>PCM</strong> / <strong>PCH</strong><br />

#task .................................................................................................................................... 129<br />

__time__ .............................................................................................................................. 131<br />

#type .................................................................................................................................... 131<br />

#undef .................................................................................................................................. 132<br />

#use capture ........................................................................................................................ 133<br />

#use delay............................................................................................................................ 134<br />

#use dynamic_memory ........................................................................................................ 135<br />

#use fast_io .......................................................................................................................... 135<br />

#use fixed_io ........................................................................................................................ 136<br />

#use i2c ............................................................................................................................... 136<br />

#use profile() ........................................................................................................................ 138<br />

#use pwm ............................................................................................................................ 138<br />

#use rs232 ........................................................................................................................... 139<br />

#use rtos .............................................................................................................................. 143<br />

#use spi ............................................................................................................................... 144<br />

#use standard_io.................................................................................................................. 146<br />

#use timer ............................................................................................................................ 146<br />

#use touchpad ..................................................................................................................... 148<br />

#warning .............................................................................................................................. 149<br />

#word ................................................................................................................................... 149<br />

#zero_ram ............................................................................................................................ 150<br />

Built-in Functions .................................................................................................................... 151<br />

BUILT-IN FUNCTIONS ........................................................................................................ 151<br />

abs( ) .................................................................................................................................... 155<br />

sin( ) cos( ) tan( ) asin( ) acos() atan() sinh() cosh() tanh() atan2() ....................................... 156<br />

adc_done( ) .......................................................................................................................... 157<br />

assert( ) ................................................................................................................................ 158<br />

atoe ...................................................................................................................................... 158<br />

atof( ) ................................................................................................................................... 159<br />

pin_select() .......................................................................................................................... 160<br />

atoi( ) atol( ) atoi32( ) ............................................................................................................ 161<br />

bit_clear( ) ............................................................................................................................ 161<br />

bit_set( ) ............................................................................................................................... 162<br />

bit_test( ) .............................................................................................................................. 163<br />

brownout_enable( ) .............................................................................................................. 163<br />

bsearch( ) ............................................................................................................................. 164<br />

calloc( ) ................................................................................................................................ 165<br />

ceil( ) .................................................................................................................................... 165<br />

clc1_setup_gate() clc2_setup_gate() clc3_setup_gate() clc4_setup_gate() ......................... 166<br />

clc1_setup_input() clc2_setup_input() clc3_setup_input() clc4_setup_input() ...................... 167<br />

clear_interrupt( ) ................................................................................................................... 168<br />

cog_status( ) ........................................................................................................................ 168<br />

cog_restart( ) ........................................................................................................................ 169<br />

cwg_status( ) ........................................................................................................................ 169<br />

cwg_restart( ) ....................................................................................................................... 170<br />

dac_write( ) .......................................................................................................................... 170<br />

delay_cycles( ) ..................................................................................................................... 171<br />

delay_ms( ) .......................................................................................................................... 171<br />

delay_us( ) ........................................................................................................................... 172<br />

disable_interrupts( ) ............................................................................................................. 173<br />

div( ) ldiv( ) ........................................................................................................................... 174<br />

vi

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

Saved successfully!

Ooh no, something went wrong!