comparison frbl/reconst/inc/protocol.h @ 312:6cba849e3332

frbl/reconst/inc: import from TCS211 surviving source
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 04 Mar 2020 23:06:07 +0000
parents
children
comparison
equal deleted inserted replaced
311:9cecc930d78f 312:6cba849e3332
1 /******************************************************************************
2 * FLUID (Flash Loader Utility Independent of Device)
3 *
4 * (C) Delta Technologies 2001.
5 * Cleanup, modifications and extensions by Mads Meisner-Jensen, mmj@ti.com.
6 *
7 * Target/PC protocol definition
8 *
9 * $Id: protocol.h 1.9 Wed, 31 Oct 2001 11:47:00 +0100 mmj $
10 *
11 ******************************************************************************/
12
13
14 enum ProtocolChars {
15 PROTO_HELLO = 'H',
16 PROTO_BAUDRATE = 'B',
17 PROTO_HARDWARE = 'H',
18 PROTO_QUERY = 'Q',
19 PROTO_QUERY_CHIP = 'C',
20 PROTO_READY = 'R',
21 PROTO_ISEMPTY = 'I',
22 PROTO_DOWNLOAD = 'L',
23 PROTO_DETECT = 'D',
24 PROTO_ERASE = 'E',
25 PROTO_COMPRESS = 'Z',
26 PROTO_PROGRAM = 'P',
27 PROTO_CKSUM = 'C',
28 PROTO_READ = 'R',
29 PROTO_RESET = '0',
30 PROTO_ERROR_CKSUM = 'X',
31 PROTO_ERROR_MEMORY = 'M',
32 PROTO_ERROR_FLASH_TIMEOUT = 'T',
33 PROTO_ERROR_FLASH_COMMAND = 'C',
34 PROTO_ERROR_FLASH_VPP = 'P',
35 PROTO_ERROR_FLASH_LOCKED = 'L',
36 PROTO_ERROR_VERIFY = 'V',
37 PROTO_CHECKSUM = 'C',
38 PROTO_VERSION = 'V',
39 PROTO_ERROR = '?',
40
41 PROTO_TRACE = '$'
42 };
43
44
45
46 // Not really part of the protocol but as this header file is included by
47 // both PC side and target side source code, this is an easy place to put
48 // these difinitions.
49 enum ChipIdCodes {
50 // Ulysses and Hercules
51 CHIP_ID_ULYSSES_0 = 0xB2B5,
52 CHIP_ID_ULYSSES_A = 0xB335,
53 CHIP_ID_HERCULES_A = 0xB334, // Correct revision designation?
54 CHIP_ID_HERCULES_B = 0xB32C, // Correct revision designation?
55
56 // Samson and Calypso
57 CHIP_ID_CALYPSO_A = 0xB2AC,
58 CHIP_ID_CALYPSO_B = 0xB396
59 };
60