Subversion Repositories HomeAutomation

Rev

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

Rev 102 Rev 107
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 10:03:48 +0100 (Wed, 15 Nov 2006) $
7
 * Last changed:    $LastChangedDate: 2006-11-15 17:32:04 +0100 (Wed, 15 Nov 2006) $
8
 * By:          $LastChangedBy: johboh $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 102 $
9
 * Revision:        $Revision: 107 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
 
13
 
14
//<FUNCT>
14
//<FUNCT>
Line 17... Line 17...
17
//<FUNCC> configuration packet
17
//<FUNCC> configuration packet
18
#define FUNCC_BOOT_INIT   0b0000000001 //Start programmring and/or resseting user program to go into bootloader mode.
18
#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.
19
#define FUNCC_BOOT_ADDR   0b0000000010  //Change programming address.
20
#define FUNCC_BOOT_SET_ID 0b0000000110  //Change ID and NID.
20
#define FUNCC_BOOT_SET_ID 0b0000000110  //Change ID and NID.
21
#define FUNCC_BOOT_DONE   0b0000000101  //End programming, start user program.
21
#define FUNCC_BOOT_DONE   0b0000000101  //End programming, start user program.
-
 
22
 
-
 
23
#define FUNCC_BOOT_HEARTBEAT 0b0000001000 // Heartbeat
22
 
24
 
23
//<FUNCC> program packet
25
//<FUNCC> program packet
24
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
26
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
25
 
27
 
26
//<FUNCC> ack packet
28
//<FUNCC> ack packet
Line 53... Line 55...
53
 
55
 
54
//<ERR>
56
//<ERR>
55
// Value in BOOT_DATA_ERR_INDEX
57
// Value in BOOT_DATA_ERR_INDEX
56
#define ACK_ERR_NO_ERROR 0x00 //= no error
58
#define ACK_ERR_NO_ERROR 0x00 //= no error
57
#define ACK_ERR_ERROR 0x01 //= error
59
#define ACK_ERR_ERROR 0x01 //= error
58
 
-