Subversion Repositories HomeAutomation

Rev

Rev 129 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 129 Rev 141
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/canFreezer/Include/compiler.h $
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canFreezer/Include/compiler.h $
7
 * Last changed:    $LastChangedDate: 2006-11-20 17:54:03 +0100 (Mon, 20 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2006-11-21 10:57:15 +0100 (Tue, 21 Nov 2006) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 129 $
9
 * Revision:        $Revision: 141 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#ifndef COMPILER_H
12
#ifndef COMPILER_H
13
#define COMPILER_H
13
#define COMPILER_H
14
 
14
 
Line 18... Line 18...
18
#define CLOCK_FOSC      (40)      // MHz
18
#define CLOCK_FOSC      (40)      // MHz
19
 
19
 
20
#define LED0_TRIS       (TRISCbits.TRISC1)
20
#define LED0_TRIS       (TRISCbits.TRISC1)
21
#define LED0_IO         (PORTCbits.RC1)
21
#define LED0_IO         (PORTCbits.RC1)
22
 
22
 
-
 
23
#define DOOR_OPEN 1
-
 
24
#define DOOR_CLOSED 0
-
 
25
 
-
 
26
#define DOOR_FREEZER_TRIS       (TRISAbits.TRISA4)
-
 
27
#define DOOR_FREEZER_IO         (PORTAbits.RA4)
-
 
28
#define DOOR_REFRIGERATOR_TRIS  (TRISAbits.TRISA5)
-
 
29
#define DOOR_REFRIGERATOR_IO    (PORTAbits.RA5)
-
 
30
 
-
 
31
 
-
 
32
#define TEMPERATURE_FREEZER 0b0000
-
 
33
#define TEMPERATURE_REFRIGERATOR 0b0001
23
 
34
 
24
#endif //compiler.h
35
#endif //compiler.h