|
|
|
@ -135,18 +135,6 @@ void init_transceiver(void)
|
|
|
|
|
}
|
|
|
|
|
#endif /* MODULE_TRANSCEIVER */
|
|
|
|
|
|
|
|
|
|
static int shell_readc(void)
|
|
|
|
|
{
|
|
|
|
|
char c = 0;
|
|
|
|
|
(void) posix_read(uart0_handler_pid, &c, 1);
|
|
|
|
|
return c;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static void shell_putchar(int c)
|
|
|
|
|
{
|
|
|
|
|
(void) putchar(c);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int main(void)
|
|
|
|
|
{
|
|
|
|
|
shell_t shell;
|
|
|
|
@ -166,7 +154,7 @@ int main(void)
|
|
|
|
|
|
|
|
|
|
(void) puts("Welcome to RIOT!");
|
|
|
|
|
|
|
|
|
|
shell_init(&shell, NULL, UART0_BUFSIZE, shell_readc, shell_putchar);
|
|
|
|
|
shell_init(&shell, NULL, UART0_BUFSIZE, uart0_readc, uart0_putc);
|
|
|
|
|
|
|
|
|
|
shell_run(&shell);
|
|
|
|
|
return 0;
|
|
|
|
|