Subversion Repositories HomeAutomation

Rev

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

Rev 94 Rev 98
Line 2... Line 2...
2
 *
2
 *
3
 *   Defines functs and funccs and other global definitions.
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 20:15:02 +0100 (Tue, 14 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2006-11-15 07:30:04 +0100 (Wed, 15 Nov 2006) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 94 $
9
 * Revision:        $Revision: 98 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
 
13
 
14
//<FUNCT>
14
//<FUNCT>
Line 25... Line 25...
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
 
27
 
28
 
28
 
29
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
29
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
-
 
30
#define DEFAULT_NID 0x00    // Default ID for bootloader/node when no nid is set.
30
 
31
 
31
 
32
 
32
#define NODE_ID_EE  0x00    // EEPROM first index where to look for ID and NID. 
33
#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 = NODE_HAS_ID if has correct ID, otherwise use DEFAULT_ID and DEFAULT_NID
34
                // NODE_HAS_ID_EE + 1 = ID[1]
35
                // NODE_HAS_ID_EE + 1 = ID[1]
35
                // NODE_HAS_ID_EE + 2 = ID[0]
36
                // NODE_HAS_ID_EE + 2 = ID[0]
36
                // NODE_HAS_ID_EE + 3 = NID
37
                // NODE_HAS_ID_EE + 3 = NID
37
 
38
 
38
#define NODE_HAS_ID 0x2A    // Value which indicate valid ID and NID.
39
#define NODE_HAS_ID 0x2A    // Value which indicate valid ID and NID.