Subversion Repositories HomeAutomation

Rev

Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
119 johboh 1
/*********************************************************************
2
 *
3
 *                  Compiler specifics like clockspeed and portIOs.
4
 *
5
 *********************************************************************
121 johboh 6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canIR/Include/compiler.h $
7
 * Last changed:    $LastChangedDate: 2007-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 363 $
119 johboh 10
 ********************************************************************/
11
 
12
#ifndef COMPILER_H
13
#define COMPILER_H
14
 
15
#include <p18cxxx.h>
16
#define CLOCK_FREQ      (40000000)      // Hz
17
#define INSTR_FREQ          (CLOCK_FREQ/4)
18
#define CLOCK_FOSC      (40)      // MHz
19
 
20
#define LED0_TRIS       (TRISCbits.TRISC1)
21
#define LED0_IO         (PORTCbits.RC1)
22
 
363 johboh 23
#define APP_VERSION 0x02
119 johboh 24
 
363 johboh 25
#define EE_INTERNAL_SIZE 1024
26
#define EE_IR_START 0x10
27
 
119 johboh 28
#endif //compiler.h