diff options
author | Simon Glass <sjg@chromium.org> | 2014-04-10 20:01:34 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-29 17:51:42 -0400 |
commit | c1bb2cd0b6a3d1b152be3686601234b3a363772b (patch) | |
tree | 3e9227a68f254ed1439c5091d00563860b0ce207 /include/cli.h | |
parent | 1364a0e48a64a29930a8b22620f420e8f4984cc7 (diff) | |
download | u-boot-imx-c1bb2cd0b6a3d1b152be3686601234b3a363772b.zip u-boot-imx-c1bb2cd0b6a3d1b152be3686601234b3a363772b.tar.gz u-boot-imx-c1bb2cd0b6a3d1b152be3686601234b3a363772b.tar.bz2 |
main: Hide the hush/simple details inside cli.c
Move these details from main (which doesn't care which parser is used) to
cli.c where they belong.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/cli.h')
-rw-r--r-- | include/cli.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/cli.h b/include/cli.h index 10dbc66..5158976 100644 --- a/include/cli.h +++ b/include/cli.h @@ -14,7 +14,7 @@ * This will return if we get a timeout waiting for a command. See * CONFIG_BOOT_RETRY_TIME. */ -void cli_loop(void); +void cli_simple_loop(void); /** * cli_simple_run_command() - Execute a command with the simple CLI @@ -100,6 +100,17 @@ int cli_readline_into_buffer(const char *const prompt, char *buffer, */ int cli_simple_parse_line(char *line, char *argv[]); +/** + * Go into the command loop + * + * This will return if we get a timeout waiting for a command, but only for + * the simple parser (not hush). See CONFIG_BOOT_RETRY_TIME. + */ +void cli_loop(void); + +/** Set up the command line interpreter ready for action */ +void cli_init(void); + #define endtick(seconds) (get_ticks() + (uint64_t)(seconds) * get_tbclk()) #endif |