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

Merge pull request #3736 from kaspar030/fix_periph_gpio

tests: periph_gpio: fix usage of shell_commands
This commit is contained in:
Peter Kietzmann 2015-08-28 10:00:01 +02:00
commit d9e02da05a
3 changed files with 6 additions and 6 deletions

View File

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

View File

@ -253,9 +253,9 @@ int main(void)
/* start the shell */
#ifndef MODULE_NEWLIB
(void) posix_open(uart0_handler_pid, 0);
shell_init(&shell, NULL, SHELL_BUFSIZE, uart0_readc, uart0_putc);
shell_init(&shell, shell_commands, SHELL_BUFSIZE, uart0_readc, uart0_putc);
#else
shell_init(&shell, NULL, SHELL_BUFSIZE, getchar, putchar);
shell_init(&shell, shell_commands, SHELL_BUFSIZE, getchar, putchar);
#endif
shell_run(&shell);

View File

@ -319,9 +319,9 @@ int main(void)
/* prepare I/O for shell */
board_uart0_init();
(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
/* define own shell commands */