24 static pthread_t injector_thread;
26 static void *injector(
void *p)
31 while ((d = getchar()) != -1)
47 int res = pthread_create(&injector_thread, NULL, injector, c);
49 perror(
"Cannot start injector");
void console_hwinit(console_t *c)
Platform dependant function that will be called during console_init().
void console_putchar(console_t *c, char d)
Asynchronously send a character to the command processor.
#define CONSOLE_CMD_VAR_INIT(n, f)
Console command descriptor.
int console_register(const console_cmd_t *cmd)
Register a new command.