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:
commit
d9e02da05a
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user