52 #define CONSOLE_CMD_VAR_INIT(n, f)                                             \ 
   58 #define SCRATCH_SIZE 80 
  263 #define CONSOLE_GPIO_VAR_INIT(name, port_, pin_, flags_)                       \ 
  265                 .cmd = CONSOLE_CMD_VAR_INIT(name, console_gpio_do_cmd),        \ 
  266                 .port = port_, .pin = pin_, .flags = flags_                    \ 
  275 #endif // RF_CONSOLE_H_ 
void console_hwinit(console_t *c)
Platform dependant function that will be called during console_init(). 
uint32_t u32[SCRATCH_SIZE/4]
void console_putchar(console_t *c, char d)
Asynchronously send a character to the command processor. 
const console_cmd_t * cmd
int console_gpio_register(const console_gpio_t *gpio)
Register a new GPIO command. 
void console_process(console_t *c, char d)
Synchronous console function for use in threaded environments. 
union console::@0 scratch
Console command descriptor. 
int console_register(const console_cmd_t *cmd)
Register a new command. 
struct console console_t
Console descriptor. 
pt_state_t console_run(console_t *c)
Console protothread entrypoint. 
int console_getch(console_t *c)
Fetch a character from the command processors queue. 
pt_state_t console_eval(pt_t *pt, console_t *c, const char *cmd)
Proto-thread to inject a string into the command parser. 
console_gpio_flags_t
Request special features from the GPIO command. 
pt_state_t console_gpio_do_cmd(console_t *c)
uint16_t u16[SCRATCH_SIZE/2]
void console_init(console_t *c, FILE *f)
Initialized the console handler.