Subversion Repositories HomeAutomation

Rev

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

Rev Author Line No. Line
25 johboh 1
/*********************************************************************
2
 *
3
 *                  Compiler specific
4
 *
5
 *********************************************************************
6
 * FileName:        compiler.h
7
 *
8
 * Author               Date    Comment
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
11
 ********************************************************************/
12
 
24 johboh 13
#ifndef COMPILER_H
14
#define COMPILER_H
15
 
16
#include <p18cxxx.h>
17
#define CLOCK_FREQ      (40000000)      // Hz
18
#define INSTR_FREQ          (CLOCK_FREQ/4)
19
#define CLOCK_FOSC      (40)      // MHz
20
 
21
#define LED0_TRIS       (TRISCbits.TRISC1)
22
#define LED0_IO         (PORTCbits.RC1)
23
 
31 johboh 24
 
24 johboh 25
#endif //compiler.h