FreeCalypso > hg > freecalypso-reveng
comparison fluid-mnf/protocol.h @ 311:9cecc930d78f
fluid-mnf: original source from TI,
defenestrated line endings and rearranged directory structure,
but no *.[ch] source file content changes yet
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 29 Feb 2020 05:36:07 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
310:ae39d76d5b7a | 311:9cecc930d78f |
---|---|
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.21 Mon, 28 Apr 2003 08:49:16 +0200 tsj $ | |
10 * | |
11 ******************************************************************************/ | |
12 | |
13 | |
14 enum ProtocolChars { | |
15 PROTO_HELLO = 'H', | |
16 PROTO_BAUDRATE = 'B', | |
17 PROTO_BAUDRATE_XXO = 'X', | |
18 PROTO_INIT = 'N', | |
19 PROTO_QUERY = 'Q', | |
20 PROTO_QUERY_CHIP = 'C', | |
21 PROTO_READY = 'R', | |
22 PROTO_ISEMPTY = 'I', | |
23 PROTO_DOWNLOAD = 'L', | |
24 PROTO_DETECT = 'D', | |
25 PROTO_ERASE = 'E', | |
26 PROTO_COMPRESS = 'Z', | |
27 PROTO_PROGRAM = 'P', | |
28 PROTO_CKSUM = 'C', | |
29 PROTO_READ = 'R', | |
30 PROTO_RESET = '0', | |
31 PROTO_CHECKSUM = 'C', | |
32 PROTO_VERSION = 'V', | |
33 PROTO_TIMERS = 'T', | |
34 PROTO_FLASH_START = '[', | |
35 PROTO_FLASH_END = ']', | |
36 PROTO_IMEI_PROTECT = 'I', | |
37 | |
38 PROTO_ERROR = '?', | |
39 PROTO_ERROR_INVALID = '!', // Invalid command parameter | |
40 PROTO_ERROR_CKSUM = 'X', | |
41 PROTO_ERROR_MEMORY = 'M', | |
42 PROTO_ERROR_VERIFY = 'D', | |
43 PROTO_ERROR_FLASH_TIMEOUT = 'T', | |
44 PROTO_ERROR_FLASH_COMMAND = 'C', | |
45 PROTO_ERROR_FLASH_VPP = 'V', | |
46 PROTO_ERROR_FLASH_LOCKED = 'L', | |
47 PROTO_ERROR_FLASH_UNKNOWN = 'F', | |
48 PROTO_ERROR_HARDWARE = 'H', | |
49 PROTO_ERROR_FIFO_OVERFLOW = 'O', | |
50 PROTO_ERROR_ROM_SSERVICE = 'S', | |
51 | |
52 PROTO_IS_ERASING = 'I', // Not a real protocol char - for internal use | |
53 | |
54 PROTO_TRACE = '$' | |
55 }; | |
56 | |
57 | |
58 | |
59 // Not really part of the protocol but as this header file is included by | |
60 // both PC side and target side source code, this is an easy place to put | |
61 // these difinitions. | |
62 enum ChipIdCodes { | |
63 // Ulysses and Hercules | |
64 CHIP_ID_ULYSSES_0 = 0xB2B5, | |
65 CHIP_ID_ULYSSES_A = 0xB335, | |
66 CHIP_ID_HERCULES_A = 0xB334, // Correct revision designation? | |
67 CHIP_ID_HERCULES_B = 0xB32C, // Correct revision designation? | |
68 | |
69 // Samson and Calypso | |
70 CHIP_ID_CALYPSO_A = 0xB2AC, | |
71 CHIP_ID_CALYPSO_B = 0xB396, | |
72 CHIP_ID_CALYPSO_C = 0xB496, | |
73 CHIP_ID_CALYPSO_L = 0xB4FB, | |
74 | |
75 CHIP_ID_CALYPSO_PLUS = 0xB512, | |
76 CHIP_ID_CALYPSO_PLUS_A = 0xB608 | |
77 }; |