comparison fluid-mnf/efluid.c @ 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 /* This file is autogenerated --- do not edit. */
2
3 #include "fluid.h"
4
5 char *main_strerror(int error)
6 {
7 switch (error) {
8 case E_OK: return "Ok"; /* 0 */
9 case E_DRIVER_INIT: return "Driver failed to initialize"; /* -3 */
10 case E_DRIVER_WAIT: return "Driver recv_wait() failed"; /* -4 */
11 case E_UART_INIT: return "UART failed to initialize"; /* -5 */
12 case E_UART_PARAM: return "UART parameter bad or unsupported"; /* -6 */
13 case E_UART_DRV_SEND: return "UART driver transmit error"; /* -7 */
14 case E_UART_DRV_RECV: return "UART driver receive error"; /* -8 */
15 case E_RECV_TIMEOUT: return "Receive timeout (no target reply)"; /* -10 */
16 case E_RECV_ANTITIMEOUT: return "Receive anti-timeout (target replied!?)"; /* -11 */
17 case E_SEND_CHECKSUM: return "Transmit checksum error"; /* -12 */
18 case E_RECV_CHECKSUM: return "Receive checksum error"; /* -13 */
19 case E_PROTO_ERROR: return "Protocol error (bad char from target)"; /* -14 */
20 case E_INVALID: return "Invalid command parameter"; /* -15 */
21 case E_FIFO_OVERFLOW: return "RX FIFO overflow in target"; /* -16 */
22 case E_FLASH_UNKNOWN: return "Flash device unknown"; /* -20 */
23 case E_FLASH_TIMEOUT: return "Flash operation timeout"; /* -21 */
24 case E_FLASH_VERIFY: return "Flash verify error"; /* -22 */
25 case E_FLASH_COMMAND: return "Flash command sequence error"; /* -23 */
26 case E_FLASH_VPPRANGE: return "Flash Vpp range error"; /* -24 */
27 case E_FLASH_LOCKED: return "Flash block locked error"; /* -25 */
28 case E_FLASH_ERROR: return "Flash error (unknown!?)"; /* -26 */
29 case E_TARGET_TYPE: return "Target type not detected, unspecified or unknown"; /* -27 */
30 case E_TARGET_MEMORY: return "Target out of memory"; /* -28 */
31 case E_PARSER_EOF: return "Unexpected end of file"; /* -30 */
32 case E_PARSER_KEYWORD: return "Syntax error: keyword expected"; /* -31 */
33 case E_PARSER_STRING: return "Syntax error: string expected"; /* -32 */
34 case E_PARSER_NUMBER: return "Syntax error: number expected"; /* -33 */
35 case E_PARSER_END_BRACE: return "Syntax error: missing end brace"; /* -34 */
36 case E_PARSER_SYNTAX: return "Syntax error"; /* -35 */
37 case E_PARSER_MEMMAP: return "Undefined flash memmap"; /* -36 */
38 case E_PARSER_ALGORITHM: return "Undefined flash algorithm"; /* -37 */
39 case E_BOOTLOADER: return "Unsupported bootloader"; /* -40 */
40 case E_FILE_OPEN: return "File open error"; /* -50 */
41 case E_FILE_CLOSE: return "File close error"; /* -52 */
42 case E_FILE_READ: return "File read error"; /* -53 */
43 case E_FILE_WRITE: return "File write error"; /* -54 */
44 case E_FILE_FORMAT: return "File format/syntax error"; /* -55 */
45 case E_FILE_EMPTY: return "File empty or unreadable?"; /* -56 */
46 case E_FILE_BUF_SMALL: return "File buffer too small"; /* -57 */
47 case E_FILE_INPUT: return "No input file name supplied"; /* -58 */
48 case E_FILE_OUTPUT: return "No output file name supplied"; /* -59 */
49 case E_ADDR_RANGE: return "Bad address range"; /* -70 */
50 case E_ERASE_SPEC: return "Bad erase override specifier"; /* -71 */
51 case E_READ_SPEC: return "Bad memory read specifier"; /* -72 */
52 case E_WRITE_SPEC: return "Bad memory write specifier"; /* -73 */
53 case E_BADARG: return "Bad argument or out of range"; /* -80 */
54 case E_ARG_MULTI: return "Multiple ambiguous arguments supplied"; /* -81 */
55 case E_ARG_TOOMANY: return "Too many arguments supplied"; /* -82 */
56 case E_MEMORY: return "Out of memory"; /* -85 */
57 case E_BUFFER: return "Internal (static) buffer too small"; /* -86 */
58 case E_ROM_SSERVICE: return "Secure ROM service error"; /* -90 */
59 case E_INTERNAL: return "Internal program state error"; /* -99 */
60 default: return "unknown error code!";
61 }
62 }