From 859250c66f89b355e8dd58105a095c3193218121 Mon Sep 17 00:00:00 2001 From: Leandro Lanzieri Date: Wed, 29 May 2019 12:07:38 +0200 Subject: [PATCH] tests/shell: Init xtimer when stdio_rtt is used --- tests/shell/main.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/shell/main.c b/tests/shell/main.c index 58792262e4..8f2cf7cc34 100644 --- a/tests/shell/main.c +++ b/tests/shell/main.c @@ -24,6 +24,10 @@ #include "shell_commands.h" #include "shell.h" +#if MODULE_STDIO_RTT +#include "xtimer.h" +#endif + static int print_teststart(int argc, char **argv) { (void) argc; @@ -64,6 +68,9 @@ int main(void) printf("test_shell.\n"); +#if MODULE_STDIO_RTT + xtimer_init(); +#endif /* define buffer to be used by the shell */ char line_buf[SHELL_DEFAULT_BUFSIZE];