Subversion Repositories HomeAutomation

Rev

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

Rev 85 Rev 86
Line 1... Line 1...
1
/*********************************************************************
1
/*********************************************************************
2
 *
2
 *
3
 *                  Compiler specific
3
 *                  Compiler specifics like clockspeed and portIOs.
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:        compiler.h
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canBase/Include/compiler.h $
7
 *
-
 
8
 * Author               Date    Comment
7
 * Last changed:    $LastChangedDate: 2006-11-14 10:55:38 +0100 (Tue, 14 Nov 2006) $
9
 *~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
 * By:              $LastChangedBy: johboh $
10
 * Johan Böhlin     21-10-06    Original        (Rev 1.0)
9
 * Revision:        $Revision: 86 $
11
 ********************************************************************/
10
 ********************************************************************/
12
 
11
 
13
#ifndef COMPILER_H
12
#ifndef COMPILER_H
14
#define COMPILER_H
13
#define COMPILER_H
15
 
14
 
Line 18... Line 17...
18
#define INSTR_FREQ          (CLOCK_FREQ/4)
17
#define INSTR_FREQ          (CLOCK_FREQ/4)
19
#define CLOCK_FOSC      (40)      // MHz
18
#define CLOCK_FOSC      (40)      // MHz
20
 
19
 
21
#define LED0_TRIS       (TRISCbits.TRISC1)
20
#define LED0_TRIS       (TRISCbits.TRISC1)
22
#define LED0_IO         (PORTCbits.RC1)
21
#define LED0_IO         (PORTCbits.RC1)
-
 
22
 
-
 
23
//<FUNCT>
-
 
24
#define FUNCT_BOOTLOADER 0x0
-
 
25
 
-
 
26
//<FUNCC>
-
 
27
#define FUNCC_BOOT_INIT 0b0000000001 //för att initiera en programmering.
-
 
28
 
23
 
29
 
24
 
30
 
25
#endif //compiler.h
31
#endif //compiler.h