Subversion Repositories HomeAutomation

Rev

Rev 93 | Rev 98 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 93 Rev 94
Line 1... Line 1...
1
/*********************************************************************
1
/*********************************************************************
2
 *
2
 *
3
 *   Defines functs and funccs.
3
 *   Defines functs and funccs and other global definitions.
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
6
 * FileName:            $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/Include/funcdefs.h $
7
 * Last changed:    $LastChangedDate: 2006-11-14 12:56:43 +0100 (Tue, 14 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2006-11-14 20:15:02 +0100 (Tue, 14 Nov 2006) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 93 $
9
 * Revision:        $Revision: 94 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
 
13
 
14
//<FUNCT>
14
//<FUNCT>
Line 22... Line 22...
22
//<FUNCC> program packet
22
//<FUNCC> program packet
23
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
23
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
24
 
24
 
25
//<FUNCC> ack packet
25
//<FUNCC> ack packet
26
#define FUNCC_BOOT_ACK 0b0000000100 //Ack packet
26
#define FUNCC_BOOT_ACK 0b0000000100 //Ack packet
-
 
27
 
-
 
28
 
-
 
29
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
-
 
30
 
-
 
31
 
-
 
32
#define NODE_ID_EE  0x00    // EEPROM first index where to look for ID and NID. 
-
 
33
                // NODE_HAS_ID_EE = NODE_HAS_ID if has correct ID, otherwise use DEFAULT_ID
-
 
34
                // NODE_HAS_ID_EE + 1 = ID[1]
-
 
35
                // NODE_HAS_ID_EE + 2 = ID[0]
-
 
36
                // NODE_HAS_ID_EE + 3 = NID
-
 
37
 
-
 
38
#define NODE_HAS_ID 0x2A    // Value which indicate valid ID and NID.