Revision 3da12676 core/inc/aos_shell.h
core/inc/aos_shell.h | ||
---|---|---|
35 | 35 |
/* CONSTANTS */ |
36 | 36 |
/******************************************************************************/ |
37 | 37 |
|
38 |
|
|
39 |
|
|
40 | 38 |
/** |
41 | 39 |
* @brief Shell event flag that is emitted when the thread starts. |
42 | 40 |
*/ |
... | ... | |
242 | 240 |
*/ |
243 | 241 |
thread_t* thread; |
244 | 242 |
|
243 |
#if (CH_CFG_USE_REGISTRY == TRUE) || defined(__DOXYGEN__) |
|
244 |
|
|
245 |
/** |
|
246 |
* @brief Name of the shell and the associated thread. |
|
247 |
*/ |
|
248 |
const char* name; |
|
249 |
|
|
250 |
#endif /* (CH_CFG_USE_REGISTRY == TRUE) */ |
|
251 |
|
|
245 | 252 |
/** |
246 | 253 |
* @brief Event source. |
247 | 254 |
*/ |
... | ... | |
333 | 340 |
#if defined(__cplusplus) |
334 | 341 |
extern "C" { |
335 | 342 |
#endif /* defined(__cplusplus) */ |
336 |
void aosShellInit(aos_shell_t* shell, const char* prompt, char inbuf[], size_t entries, size_t linewidth, size_t numargs); |
|
343 |
void aosShellInit(aos_shell_t* shell, const char* name, const char* prompt, char inbuf[], size_t entries, size_t linewidth, size_t numargs);
|
|
337 | 344 |
void aosShellStreamInit(AosShellStream* stream); |
338 | 345 |
void aosShellChannelInit(AosShellChannel* channel, BaseAsynchronousChannel* asyncchannel); |
339 | 346 |
aos_status_t aosShellAddCommand(aos_shell_t* shell, aos_shellcommand_t* cmd); |
Also available in: Unified diff