/*********************************************************************
*
* Compiler specifics like clockspeed and portIOs.
*
*********************************************************************
* FileName: $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canIR/Include/compiler.h $
* Last changed: $LastChangedDate: 2007-03-13 18:29:20 +0100 (Tue, 13 Mar 2007) $
* By: $LastChangedBy: johboh $
* Revision: $Revision: 363 $
********************************************************************/
#ifndef COMPILER_H
#define COMPILER_H
#include <p18cxxx.h>
#define CLOCK_FREQ (40000000) // Hz
#define INSTR_FREQ (CLOCK_FREQ/4)
#define CLOCK_FOSC (40) // MHz
#define LED0_TRIS (TRISCbits.TRISC1)
#define LED0_IO (PORTCbits.RC1)
#define APP_VERSION 0x02
#define EE_INTERNAL_SIZE 1024
#define EE_IR_START 0x10
#endif //compiler.h