Subversion Repositories HomeAutomation

Rev

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

Rev 358 Rev 359
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: 2007-03-04 14:49:20 +0100 (Sun, 04 Mar 2007) $
7
 * Last changed:    $LastChangedDate: 2007-03-04 15:13:16 +0100 (Sun, 04 Mar 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 358 $
9
 * Revision:        $Revision: 359 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
#ifndef COMPILER_H
12
#ifndef COMPILER_H
13
#define COMPILER_H
13
#define COMPILER_H
14
 
14
 
15
#define APP_VERSION 0x0001
15
#define APP_VERSION 0x0001
16
 
16
 
-
 
17
#define DOOR_OPEN 1
-
 
18
#define DOOR_CLOSED 0
17
 
19
 
18
#include <p18cxxx.h>
20
#include <p18cxxx.h>
19
#define CLOCK_FREQ      (40000000)      // Hz
21
#define CLOCK_FREQ      (40000000)      // Hz
20
#define INSTR_FREQ          (CLOCK_FREQ/4)
22
#define INSTR_FREQ          (CLOCK_FREQ/4)
21
#define CLOCK_FOSC      (40)      // MHz
23
#define CLOCK_FOSC      (40)      // MHz