Subversion Repositories HomeAutomation

Rev

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

Rev 139 Rev 275
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/canTemp/Include/compiler.h $
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Include/compiler.h $
7
 * Last changed:    $LastChangedDate: 2006-11-20 21:31:03 +0100 (Mon, 20 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2007-01-30 12:34:06 +0100 (Tue, 30 Jan 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 139 $
9
 * Revision:        $Revision: 275 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#ifndef COMPILER_H
12
#ifndef COMPILER_H
13
#define COMPILER_H
13
#define COMPILER_H
14
 
14
 
Line 17... Line 17...
17
#define INSTR_FREQ          (CLOCK_FREQ/4)
17
#define INSTR_FREQ          (CLOCK_FREQ/4)
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
 
-
 
23
#define BLINDS0_TRIS    (TRISCbits.TRISC4)
-
 
24
#define BLINDS0_IO      (PORTCbits.RC4)
22
 
25
 
23
#define TEMPERATURE_INSIDE 0b0000
26
#define TEMPERATURE_INSIDE 0b0000
24
#define TEMPERATURE_OUTSIDE 0b0001
27
#define TEMPERATURE_OUTSIDE 0b0001
25
 
28
 
26
#endif //compiler.h
29
#endif //compiler.h