![]()  | 
  
Simple Command line interface shell. More...
Macros | |
| #define | CR '\r' | 
| #define | LF '\n' | 
| #define | CTRL_C 0x03 | 
| #define | CTRL_D 0x04 | 
| #define | CTRL_Q 0x11 | 
| #define | BKSPACE_CHAR '\b' | 
| #define | ABORT_CHAR CTRL_C | 
| #define | QUIT_APPEND CTRL_Q | 
| #define | HISTORY_CHAR '!' | 
| #define | ESC 0x1B | 
| #define | SYMVAL(sym) (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0)) | 
Functions | |
| void | shellInit (void) | 
| Shell manager initialization.  More... | |
| Thread * | shellCreate (const ShellConfig *scp, size_t size, tprio_t prio) | 
| Spawns a new shell using dynamic memory allocation.  More... | |
| Thread * | shellCreateStatic (const ShellConfig *scp, void *wsp, size_t size, tprio_t prio) | 
| Create statically allocated shell thread.  More... | |
Variables | |
| EventSource | shell_terminated | 
| uint32_t | _textdata | 
| uint32_t | _data | 
| uint32_t | _edata | 
Simple Command line interface shell.
| #define CR '\r' | 
| #define LF '\n' | 
| #define CTRL_C 0x03 | 
| #define CTRL_D 0x04 | 
| #define CTRL_Q 0x11 | 
| #define BKSPACE_CHAR '\b' | 
| #define ABORT_CHAR CTRL_C | 
| #define QUIT_APPEND CTRL_Q | 
| #define HISTORY_CHAR '!' | 
| #define ESC 0x1B | 
| #define SYMVAL | ( | sym) | (uint32_t)(((uint8_t *)&(sym)) - ((uint8_t *)0)) | 
| void shellInit | ( | void | ) | 
Shell manager initialization.
| Thread* shellCreate | ( | const ShellConfig * | scp, | 
| size_t | size, | ||
| tprio_t | prio | ||
| ) | 
Spawns a new shell using dynamic memory allocation.
| [in] | scp | pointer to a ShellConfig object  | 
| [in] | size | size of the shell working area to be allocated | 
| [in] | prio | priority level for the new shell | 
| NULL | thread creation failed because memory allocation. | 
CH_USE_DYNAMIC must be enabled. | Thread* shellCreateStatic | ( | const ShellConfig * | scp, | 
| void * | wsp, | ||
| size_t | size, | ||
| tprio_t | prio | ||
| ) | 
Create statically allocated shell thread.
| [in] | scp | pointer to a ShellConfig object  | 
| [in] | wsp | pointer to a working area dedicated to the shell thread stack | 
| [in] | size | size of the shell working area to be allocated | 
| [in] | prio | priority level for the new shell | 
| EventSource shell_terminated | 
| uint32_t _textdata | 
| uint32_t _data | 
| uint32_t _edata |