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.

PreProcessor<br />

type=speed option the compiler will set the correct configuration bits for the USB<br />

peripheral to operate at Full-Speed.<br />

USB_LOW for devices with a built-in USB peripheral. When used with the type=speed<br />

option the compiler will set the correct configuration bits for the USB peripheral to operate<br />

at Low-Speed.<br />

Also See:<br />

delay_ms(), delay_us()<br />

#use dynamic_memory<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

Examples:<br />

Example<br />

Files:<br />

Also See:<br />

#USE DYNAMIC_MEMORY<br />

None<br />

This pre-processor directive instructs the compiler to create the<br />

_DYNAMIC_HEAD object. _DYNAMIC_HEAD is the location where the first free<br />

space is allocated.<br />

#USE DYNAMIC_MEMORY<br />

void main ( ){<br />

}<br />

ex_malloc.c<br />

None<br />

#use fast_io<br />

Syntax:<br />

Elements:<br />

Purpose:<br />

#USE FAST_IO (port)<br />

port is A, B, C, D, E, F, G, H, J or ALL<br />

Affects how the compiler will generate code for input and output instructions that<br />

follow. This directive takes effect until another #use xxxx_IO directive is<br />

encountered. The fast method of doing I/O will cause the compiler to perform I/O without<br />

programming of the direction register. The compiler's default operation is the opposite of<br />

this command, the direction I/O will be set/cleared on each I/O operation. The user must<br />

ensure the direction register is set correctly via set_tris_X(). When linking multiple<br />

compilation units be aware this directive only applies to the current compilation unit.<br />

135

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

Saved successfully!

Ooh no, something went wrong!