Rev 79 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 79 | Rev 80 | ||
|---|---|---|---|
| 1 | /********************************************************************* |
1 | /********************************************************************* |
| 2 | * |
2 | * |
| 3 | * Compiler specific |
3 | * Compiler specific |
| 4 | * |
4 | * |
| 5 | ********************************************************************* |
5 | ********************************************************************* |
| 6 | * FileName: compiler.h |
6 | * FileName: compiler.h |
| 7 | * |
7 | * |
| 8 | * Author Date Comment |
8 | * Author Date Comment |
| 9 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
9 | *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 10 | * Johan Böhlin 21-10-06 Original (Rev 1.0) |
10 | * Johan Böhlin 21-10-06 Original (Rev 1.0) |
| 11 | ********************************************************************/ |
11 | ********************************************************************/ |
| 12 | // |
12 | // $Id: compiler.h 80 2006-11-11 20:22:39Z johboh $ |
| 13 | 13 | ||
| 14 | #ifndef COMPILER_H |
14 | #ifndef COMPILER_H |
| 15 | #define COMPILER_H |
15 | #define COMPILER_H |
| 16 | 16 | ||
| 17 | #include <p18cxxx.h> |
17 | #include <p18cxxx.h> |
| 18 | #define CLOCK_FREQ (40000000) // Hz |
18 | #define CLOCK_FREQ (40000000) // Hz |
| 19 | #define INSTR_FREQ (CLOCK_FREQ/4) |
19 | #define INSTR_FREQ (CLOCK_FREQ/4) |
| 20 | #define CLOCK_FOSC (40) // MHz |
20 | #define CLOCK_FOSC (40) // MHz |
| 21 | 21 | ||
| 22 | #define LED0_TRIS (TRISCbits.TRISC1) |
22 | #define LED0_TRIS (TRISCbits.TRISC1) |
| 23 | #define LED0_IO (PORTCbits.RC1) |
23 | #define LED0_IO (PORTCbits.RC1) |
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | #endif //compiler.h |
26 | #endif //compiler.h |
| 27 | 27 | ||