Subversion Repositories HomeAutomation

Rev

Rev 342 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 342 Rev 347
1
/*********************************************************************
1
/*********************************************************************
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: 2007-02-26 21:38:37 +0100 (Mon, 26 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-03-01 14:38:06 +0100 (Thu, 01 Mar 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 342 $
9
 * Revision:        $Revision: 347 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#ifndef COMPILER_H
12
#ifndef COMPILER_H
13
#define COMPILER_H
13
#define COMPILER_H
14
 
14
 
15
#include <p18cxxx.h>
15
#include <p18cxxx.h>
16
#define CLOCK_FREQ      (40000000)      // Hz
16
#define CLOCK_FREQ      (40000000)      // Hz
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
 
22
 
23
#define BLINDS0_TRIS    (TRISCbits.TRISC4)
23
#define BLINDS0_TRIS    (TRISCbits.TRISC4)
24
#define BLINDS0_IO      (PORTCbits.RC4)
24
#define BLINDS0_IO      (PORTCbits.RC4)
25
 
25
 
26
#define BLINDS0P_TRIS   (TRISCbits.TRISC5)
26
#define BLINDS0P_TRIS   (TRISCbits.TRISC5)
27
#define BLINDS0P_IO     (PORTCbits.RC5)
27
#define BLINDS0P_IO     (PORTCbits.RC5)
28
 
28
 
29
#define TEMPERATURE_INSIDE 0x1
29
#define TEMPERATURE_INSIDE 0x1
30
#define TEMPERATURE_OUTSIDE 0x2
30
#define TEMPERATURE_OUTSIDE 0x2
31
 
31
 
32
#define APP_VERSION 0x01
32
#define APP_VERSION 0x0002
33
 
33
 
34
#endif //compiler.h
34
#endif //compiler.h
35
 
35