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 Programs<br />

Hardware layer for built-in PIC USB<br />

SC28L19X.C<br />

Driver for the Phillips external UART (4 or 8 port)<br />

SETJMP.H<br />

Standard C functions for doing jumps outside functions<br />

STDDEF.H<br />

Standard C definitions<br />

STDIO.H<br />

Not much here - Provided for standard C compatibility<br />

STDLIB.H<br />

String to number functions<br />

STDLIBM.H<br />

Standard C memory management functions<br />

STRING.H<br />

Various standard string functions<br />

TONES.C<br />

Functions to generate tones<br />

TOUCH.C<br />

Functions to read/write to Dallas touch devices<br />

USB.H<br />

Standard USB request and token handler code<br />

USBN960X.C<br />

Functions to interface to Nationals USBN960x USB chips<br />

USB.C<br />

USB token and request handler code, Also includes usb_desc.h and usb.h<br />

X10.C<br />

Functions to read/write X10 codes<br />

/////////////////////////////////////////////////////////////////<br />

/// EX_SQW.C ///<br />

/// This program displays a message over the RS-232 and ///<br />

/// waits for any keypress to continue. The program ///<br />

/// will then begin a 1khz square wave over I/O pin B0. ///<br />

/// Change both delay_us to delay_ms to make the ///<br />

/// frequency 1 hz. This will be more visible on ///<br />

/// a LED. Configure the <strong>CCS</strong> prototype card as follows: ///<br />

/// insert jumpers from 11 to 17, 12 to 18, and 42 to 47. ///<br />

/////////////////////////////////////////////////////////////////<br />

#ifdef __<strong>PCB</strong>__<br />

#include <br />

#else<br />

381

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

Saved successfully!

Ooh no, something went wrong!