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