Revision dd8738ea os/core/inc/aos_shell.h
os/core/inc/aos_shell.h | ||
---|---|---|
24 | 24 |
|
25 | 25 |
#include <hal.h> |
26 | 26 |
#include <aos_types.h> |
27 |
#include <aos_iostream.h> |
|
27 |
//#include <aos_iostream.h>
|
|
28 | 28 |
|
29 | 29 |
/** |
30 | 30 |
* @brief Shell event flag that is emitted when the thread starts. |
... | ... | |
102 | 102 |
* @brief AosShellChannel specific data. |
103 | 103 |
*/ |
104 | 104 |
#define _aos_shell_channel_data \ |
105 |
/* pointer to a AosIOChannel object */ \
|
|
106 |
AosIOChannel* iochannel; \
|
|
105 |
/* pointer to a BaseAsynchronousChannel object */ \
|
|
106 |
BaseAsynchronousChannel* asyncchannel; \
|
|
107 | 107 |
/* event listener for the associated BaseAsynchronousChannel */ \ |
108 | 108 |
event_listener_t listener; \ |
109 | 109 |
/* pointer to the next chennal in a AosShellStream */ \ |
... | ... | |
211 | 211 |
* @brief Enumerator to encode shell actions. |
212 | 212 |
*/ |
213 | 213 |
typedef enum aos_shellaction { |
214 |
AOS_SHELL_ACTION_NONE, |
|
214 | 215 |
AOS_SHELL_ACTION_READCHAR, |
215 | 216 |
AOS_SHELL_ACTION_AUTOFILL, |
216 | 217 |
AOS_SHELL_ACTION_SUGGEST, |
... | ... | |
225 | 226 |
AOS_SHELL_ACTION_CURSORRIGHT, |
226 | 227 |
AOS_SHELL_ACTION_EXECUTE, |
227 | 228 |
AOS_SHELL_ACTION_ESCSTART, |
228 |
AOS_SHELL_ACTION_NONE, |
|
229 | 229 |
} aos_shellaction_t; |
230 | 230 |
|
231 | 231 |
/** |
... | ... | |
344 | 344 |
#endif |
345 | 345 |
void aosShellInit(aos_shell_t* shell, event_source_t* oseventsource, const char* prompt, char* line, size_t linesize, char** arglist, size_t arglistsize); |
346 | 346 |
void aosShellStreamInit(AosShellStream* stream); |
347 |
void aosShellChannelInit(AosShellChannel* channel, AosIOChannel* iochannel);
|
|
347 |
void aosShellChannelInit(AosShellChannel* channel, BaseAsynchronousChannel* asyncchannel);
|
|
348 | 348 |
aos_status_t aosShellAddCommand(aos_shell_t* shell, aos_shellcommand_t* cmd); |
349 | 349 |
aos_status_t aosShellRemoveCommand(aos_shell_t* shell, char* cmd, aos_shellcommand_t** removed); |
350 | 350 |
void aosShellStreamAddChannel(AosShellStream* stream, AosShellChannel* channel); |
Also available in: Unified diff