diff options
author | Leo C | 2014-08-21 11:36:14 +0200 |
---|---|---|
committer | Leo C | 2014-08-21 11:36:14 +0200 |
commit | 21a24f90c5aaaaf13f91716208b32cde163c5918 (patch) | |
tree | efc6f9ebab5f84d3af20493821444f220b957962 /avr/cli_readline.h | |
parent | dea9a31523216caa153c589426b175d52aa43634 (diff) | |
download | z180-stamp-21a24f90c5aaaaf13f91716208b32cde163c5918.zip |
Create include directory
Diffstat (limited to 'avr/cli_readline.h')
-rw-r--r-- | avr/cli_readline.h | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/avr/cli_readline.h b/avr/cli_readline.h deleted file mode 100644 index 5b25762..0000000 --- a/avr/cli_readline.h +++ /dev/null @@ -1,50 +0,0 @@ -/* - * (C) Copyright 2014 Google, Inc - * Simon Glass <sjg@chromium.org> - * - * SPDX-License-Identifier: GPL-2.0+ - */ - -#ifndef CLI_READLINE_H -#define CLI_READLINE_H - -extern char console_buffer[]; /* console I/O buffer */ - -/** - * cli_readline() - read a line into the console_buffer - * - * This is a convenience function which calls cli_readline_into_buffer(). - * - * @prompt: Prompt to display - * @return command line length excluding terminator, or -ve on error - */ -int cli_readline(const FLASH char *const prompt); - -/** - * readline_into_buffer() - read a line into a buffer - * - * Display the prompt, then read a command line into @buffer. The - * maximum line length is CONFIG_SYS_CBSIZE including a \0 terminator, which - * will always be added. - * - * The command is echoed as it is typed. Command editing is supported if - * CONFIG_CMDLINE_EDITING is defined. Tab auto-complete is supported if - * CONFIG_AUTO_COMPLETE is defined. If CONFIG_BOOT_RETRY_TIME is defined, - * then a timeout will be applied. - * - * If CONFIG_BOOT_RETRY_TIME is defined and retry_time >= 0, - * time out when time goes past endtime (timebase time in ticks). - * - * @prompt: Prompt to display - * @buffer: Place to put the line that is entered - * @timeout: Timeout in milliseconds, 0 if none - * @return command line length excluding terminator, or -ve on error: of the - * timeout is exceeded (either CONFIG_BOOT_RETRY_TIME or the timeout - * parameter), then -2 is returned. If a break is detected (Ctrl-C) then - * -1 is returned. - */ -//int cli_readline_into_buffer(const char *const prompt, char *buffer, int timeout); - - -#endif /* CLI_READLINE_H */ - |