Subversion Repositories HomeAutomation

Rev

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

Rev 111 Rev 126
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-15 18:53:50 +0100 (Wed, 15 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2006-11-19 16:00:56 +0100 (Sun, 19 Nov 2006) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 111 $
9
 * Revision:        $Revision: 126 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
 
13
 
14
//<FUNCT>
14
//<FUNCT>
15
#define FUNCT_BOOTLOADER 0x0
15
#define FUNCT_BOOTLOADER 0x00
-
 
16
#define FUNCT_SENSORS 0x01
16
 
17
 
17
//<FUNCC> configuration packet
18
//<FUNCC> configuration packet
18
#define FUNCC_BOOT_INIT   0b0000000001 //Start programmring and/or resseting user program to go into bootloader mode.
19
#define FUNCC_BOOT_INIT   0b0000000001 //Start programmring and/or resseting user program to go into bootloader mode.
19
#define FUNCC_BOOT_ADDR   0b0000000010  //Change programming address.
20
#define FUNCC_BOOT_ADDR   0b0000000010  //Change programming address.
20
#define FUNCC_BOOT_SET_ID 0b0000000110  //Change ID and NID.
21
#define FUNCC_BOOT_SET_ID 0b0000000110  //Change ID and NID.
Line 25... Line 26...
25
//<FUNCC> program packet
26
//<FUNCC> program packet
26
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
27
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
27
 
28
 
28
//<FUNCC> ack packet
29
//<FUNCC> ack packet
29
#define FUNCC_BOOT_ACK 0b0000000100 //Ack packet
30
#define FUNCC_BOOT_ACK 0b0000000100 //Ack packet
-
 
31
 
-
 
32
//<FUNCC>
-
 
33
#define FUNCC_SENSORS_IR 0b0000000001
30
 
34
 
31
 
35
 
32
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
36
#define DEFAULT_ID 0x78     // Default ID for bootloader/node when no id is set.
33
#define DEFAULT_NID 0x00    // Default ID for bootloader/node when no nid is set.
37
#define DEFAULT_NID 0x00    // Default ID for bootloader/node when no nid is set.
34
 
38