Subversion Repositories HomeAutomation

Rev

Details | Last modification | View Log | SVN | RSS feed

Rev Author Line No. Line
93 johboh 1
/*********************************************************************
2
 *
3
 *   Defines functs and funccs.
4
 *
5
 *********************************************************************
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) $
8
 * By:          $LastChangedBy: johboh $
9
 * Revision:        $Revision: 93 $
10
 ********************************************************************/
11
 
12
 
13
 
14
//<FUNCT>
15
#define FUNCT_BOOTLOADER 0x0
16
 
17
//<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_ADDR 0b0000000010  //Change programming address.
20
#define FUNCC_BOOT_DONE 0b0000000101  //End programming, start user program.
21
 
22
//<FUNCC> program packet
23
#define FUNCC_BOOT_PGM 0b0000000011 //To indicate programming data packet.
24
 
25
//<FUNCC> ack packet
26
#define FUNCC_BOOT_ACK 0b0000000100 //Ack packet