Rev 80 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 80 | Rev 88 | ||
|---|---|---|---|
| 1 | /********************************************************************* |
1 | /********************************************************************* |
| 2 | * |
2 | * |
| 3 | * Compiler specific |
3 | * Compiler specific |
| 4 | * |
4 | * |
| 5 | ********************************************************************* |
5 | ********************************************************************* |
| 6 | * FileName: compiler.h |
6 | * FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canBoot/Include/compiler.h $ |
| 7 | * |
- | |
| 8 | * |
7 | * Last changed: $LastChangedDate: 2006-11-14 11:44:27 +0100 (Tue, 14 Nov 2006) $ |
| 9 | * |
8 | * By: $LastChangedBy: johboh $ |
| 10 | * |
9 | * Revision: $Revision: 88 $ |
| 11 | ********************************************************************/ |
10 | ********************************************************************/ |
| 12 | // $Id: compiler.h 80 2006-11-11 20:22:39Z johboh $ |
- | |
| 13 | 11 | ||
| 14 | #ifndef COMPILER_H |
12 | #ifndef COMPILER_H |
| 15 | #define COMPILER_H |
13 | #define COMPILER_H |
| 16 | 14 | ||
| 17 | #include <p18cxxx.h> |
15 | #include <p18cxxx.h> |
| 18 | #define CLOCK_FREQ (40000000) // Hz |
16 | #define CLOCK_FREQ (40000000) // Hz |
| 19 | #define INSTR_FREQ (CLOCK_FREQ/4) |
17 | #define INSTR_FREQ (CLOCK_FREQ/4) |
| 20 | #define CLOCK_FOSC (40) // MHz |
18 | #define CLOCK_FOSC (40) // MHz |
| 21 | 19 | ||
| 22 | #define LED0_TRIS (TRISCbits.TRISC1) |
20 | #define LED0_TRIS (TRISCbits.TRISC1) |
| 23 | #define LED0_IO (PORTCbits.RC1) |
21 | #define LED0_IO (PORTCbits.RC1) |
| 24 | 22 | ||
| 25 | 23 | ||
| 26 | #endif //compiler.h |
24 | #endif //compiler.h |
| 27 | 25 | ||