Added a shell_quit() function that cleanly exits the shell (currently untested though)
This commit is contained in:
parent
0fc8481f15
commit
6479f001fa
2 changed files with 23 additions and 5 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: shell.h,v 1.5 2008/02/24 20:35:03 adamdunkels Exp $
|
||||
* $Id: shell.h,v 1.6 2008/02/28 23:29:07 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -78,6 +78,9 @@ unsigned long shell_strtolong(const char *str, const char **retstr);
|
|||
unsigned long shell_time(void);
|
||||
void shell_set_time(unsigned long seconds);
|
||||
|
||||
void shell_quit(void);
|
||||
|
||||
|
||||
#define SHELL_COMMAND(name, command, description, process) \
|
||||
static struct shell_command name = { NULL, command, \
|
||||
description, process }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue