Mercurial > flash_v2
diff packages/redboot/current/include/redboot.h @ 143:6b5f480c6929 ecos-sw-2000-12-08
Merge from eCos master repository on 2000-12-08-02:09:36-GMT
| author | jlarmour |
|---|---|
| date | Fri, 08 Dec 2000 03:30:06 +0000 |
| parents | eb9fd8c04db3 |
| children | 52c99470ec11 |
line wrap: on
line diff
--- a/packages/redboot/current/include/redboot.h +++ b/packages/redboot/current/include/redboot.h @@ -101,9 +101,17 @@ int strncmpci(const char *s1, const cha char *strcpy(char *s1, const char *s2); void mon_write_char(char c); -int gets(char *line, int len, int timeout); bool verify_action(char *fmt, ...); void dump_buf(void *, CYG_ADDRWORD); +void dump_buf_with_offset(void *, CYG_ADDRWORD, void *); + +// Read a single line of input from the console, possibly with timeout +int gets(char *line, int len, int timeout); +// Result codes from 'gets()' +#define _GETS_TIMEOUT -1 +#define _GETS_CTRLC -2 +#define _GETS_GDB 0 +#define _GETS_OK 1 // "console" selection int start_console(void);
