Rev 140 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 140 | Rev 357 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | * |
2 | * |
| 3 | * Compiler specifics like clockspeed and portIOs. |
3 | * Compiler specifics like clockspeed and portIOs. |
| 4 | * |
4 | * |
| 5 | ********************************************************************* |
5 | ********************************************************************* |
| 6 | * FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canLCD/Include/compiler.h $ |
6 | * FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canLCD/Include/compiler.h $ |
| 7 | * Last changed: $LastChangedDate: |
7 | * Last changed: $LastChangedDate: 2007-03-04 12:01:27 +0100 (Sun, 04 Mar 2007) $ |
| 8 | * By: $LastChangedBy: johboh $ |
8 | * By: $LastChangedBy: johboh $ |
| 9 | * Revision: $Revision: |
9 | * Revision: $Revision: 357 $ |
| 10 | ********************************************************************/ |
10 | ********************************************************************/ |
| 11 | 11 | ||
| 12 | #ifndef COMPILER_H |
12 | #ifndef COMPILER_H |
| 13 | #define COMPILER_H |
13 | #define COMPILER_H |
| 14 | 14 | ||
| Line 19... | Line 19... | ||
| 19 | #define NUM_CYK_1us 10 |
19 | #define NUM_CYK_1us 10 |
| 20 | #define NUM_CYK_1ms 10000 |
20 | #define NUM_CYK_1ms 10000 |
| 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 | ||
| - | 25 | // GLCD |
|
| - | 26 | #define GLCD_CS_TRIS (PORTCbits.RC0) |
|
| - | 27 | #define GLCD_CS_IO (TRISCbits.TRISC0) |
|
| - | 28 | #define GLCD_RES_TRIS (PORTCbits.RC1) |
|
| - | 29 | #define GLCD_RES_IO (TRISCbits.TRISC1) |
|
| - | 30 | #define GLCD_A0_TRIS (PORTCbits.RC2) |
|
| - | 31 | #define GLCD_A0_IO (TRISCbits.TRISC2) |
|
| - | 32 | #define GLCD_SCL_TRIS (PORTCbits.RC3) |
|
| - | 33 | #define GLCD_SCL_IO (TRISCbits.TRISC3) |
|
| - | 34 | #define GLCD_SI_TRIS (PORTCbits.RC5) |
|
| - | 35 | #define GLCD_SI_IO (TRISCbits.TRISC5) |
|
| 24 | 36 | ||
| 25 | // LCD |
37 | // LCD |
| - | 38 | /* |
|
| 26 | #define LCD_DATA_4_TRIS (PORTCbits.RC0) |
39 | #define LCD_DATA_4_TRIS (PORTCbits.RC0) |
| 27 | #define LCD_DATA_4_IO (TRISCbits.TRISC0) |
40 | #define LCD_DATA_4_IO (TRISCbits.TRISC0) |
| 28 | #define LCD_DATA_5_TRIS (PORTCbits.RC1) |
41 | #define LCD_DATA_5_TRIS (PORTCbits.RC1) |
| 29 | #define LCD_DATA_5_IO (TRISCbits.TRISC1) |
42 | #define LCD_DATA_5_IO (TRISCbits.TRISC1) |
| 30 | #define LCD_DATA_6_TRIS (PORTCbits.RC2) |
43 | #define LCD_DATA_6_TRIS (PORTCbits.RC2) |
| Line 38... | Line 51... | ||
| 38 | #define LCD_EN_IO (TRISAbits.TRISA5) |
51 | #define LCD_EN_IO (TRISAbits.TRISA5) |
| 39 | 52 | ||
| 40 | #define LCD_LINE1 0 |
53 | #define LCD_LINE1 0 |
| 41 | #define LCD_LINE2 40 |
54 | #define LCD_LINE2 40 |
| 42 | #define LCD_LINE_LENGTH 24 |
55 | #define LCD_LINE_LENGTH 24 |
| - | 56 | */ |
|
| - | 57 | ||
| - | 58 | #define APP_VERSION 0x0002 |
|
| - | 59 | ||
| 43 | 60 | ||
| 44 | #endif //compiler.h |
61 | #endif //compiler.h |