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

examples: Add local shell handlers for gnrc_networking

This commit is contained in:
DipSwitch 2015-08-26 09:05:22 +02:00
parent 293c5322de
commit ef3fe7e2c5

View File

@ -46,9 +46,9 @@ int main(void)
puts("All up, running the shell now");
#ifndef MODULE_NEWLIB
(void) posix_open(uart0_handler_pid, 0);
shell_init(&shell, NULL, UART0_BUFSIZE, uart0_readc, uart0_putc);
shell_init(&shell, shell_commands, UART0_BUFSIZE, uart0_readc, uart0_putc);
#else
shell_init(&shell, NULL, UART0_BUFSIZE, getchar, putchar);
shell_init(&shell, shell_commands, UART0_BUFSIZE, getchar, putchar);
#endif
shell_run(&shell);