1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00

examples/default: make use of uart0_[readc|putc]

This commit is contained in:
Hauke Petersen 2015-06-14 17:06:09 +02:00
parent 7105fe2e4f
commit dd3d93c928

View File

@ -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;