diff --git a/examples/default/main.c b/examples/default/main.c index 186df320e..341132535 100644 --- a/examples/default/main.c +++ b/examples/default/main.c @@ -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;