Browse Source

examples: Add local shell handlers for gnrc_networking

dev/timer
DipSwitch 7 years ago
parent
commit
ef3fe7e2c5
  1. 4
      examples/gnrc_networking/main.c

4
examples/gnrc_networking/main.c

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

Loading…
Cancel
Save