board layout changes..
- fixed ICSP header
- reworekd some wires
1 /*********************************************************************
3 * Microchip USB C18 Firmware Version 1.0
5 *********************************************************************
7 * Dependencies: See INCLUDES section below
9 * Compiler: C18 2.30.01+
10 * Company: Microchip Technology, Inc.
12 * Software License Agreement
14 * The software supplied herewith by Microchip Technology Incorporated
15 * (the “Company”) for its PICmicro® Microcontroller is intended and
16 * supplied to you, the Company’s customer, for use solely and
17 * exclusively on Microchip PICmicro Microcontroller products. The
18 * software is owned by the Company and/or its supplier, and is
19 * protected under applicable copyright laws. All rights are reserved.
20 * Any use in violation of the foregoing restrictions may subject the
21 * user to criminal sanctions under applicable laws, as well as to
22 * civil liability for the breach of the terms and conditions of this
25 * THIS SOFTWARE IS PROVIDED IN AN “AS IS” CONDITION. NO WARRANTIES,
26 * WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED
27 * TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
28 * PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT,
29 * IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR
30 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
33 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
34 * Rawin Rojvanit 7/21/04 Original.
35 ********************************************************************/
40 typedef unsigned char byte; // 8-bit
41 typedef unsigned int word; // 16-bit
42 typedef unsigned long dword; // 32-bit
83 #define LSB(a) ((a).v[0])
84 #define MSB(a) ((a).v[1])
118 #define LOWER_LSB(a) ((a).v[0])
119 #define LOWER_MSB(a) ((a).v[1])
120 #define UPPER_LSB(a) ((a).v[2])
121 #define UPPER_MSB(a) ((a).v[3])
123 typedef void(*pFunc)(void);
125 typedef union _POINTER
133 word _word; // bLow & bHigh
135 //pFunc _pFunc; // Usage: ptr.pFunc(); Init: ptr.pFunc = &<Function>;
137 byte* bRam; // Ram byte pointer: 2 bytes pointer pointing
139 word* wRam; // Ram word poitner: 2 bytes poitner pointing
140 // to 2 bytes of data
142 rom byte* bRom; // Size depends on compiler setting
144 //rom near byte* nbRom; // Near = 2 bytes pointer
145 //rom near word* nwRom;
146 //rom far byte* fbRom; // Far = 3 bytes pointer
147 //rom far word* fwRom;
150 typedef enum _BOOL { FALSE = 0, TRUE } BOOL;