TEN MBED OS Course shell utility

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers shell.h Source File

shell.h

00001 /**
00002  * @brief simple shel utility
00003  */
00004 #ifndef __SHELL_H
00005 #define __SHELL_H
00006 
00007 #define SHELL_TXD USBTX
00008 #define SHELL_RXD USBRX
00009 
00010 
00011 /* define the shell command handler callback */
00012 typedef int (*shell_callback_t) (char *cmd, int argc, char **argv, void *outchar);
00013 typedef void (*shell_usage_t) (void *outchar);
00014 
00015 /**
00016  * @brief set custom shell command handler 
00017  */
00018 void shell_set_command_handler(shell_callback_t sh);
00019 
00020 
00021 /**
00022  * @brief set the command list
00023  */
00024 void shell_set_cmd_list(shell_usage_t sh);
00025 
00026 
00027 /**
00028  * @brief start the shell character capturer
00029  */
00030 void shell_start(void);
00031 
00032 #endif