From 76da4d8d1214c181196edd16b5712b67625de9ab Mon Sep 17 00:00:00 2001 From: Michael Andersen Date: Wed, 19 Oct 2016 09:06:57 -0700 Subject: [PATCH] rtt_stdio: update for new xtimer api --- sys/rtt_stdio/rtt_stdio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/rtt_stdio/rtt_stdio.c b/sys/rtt_stdio/rtt_stdio.c index cd3370a0a5..dec511a70a 100644 --- a/sys/rtt_stdio/rtt_stdio.c +++ b/sys/rtt_stdio/rtt_stdio.c @@ -313,7 +313,7 @@ int uart_stdio_read(char* buffer, int count) { /* We only unlock when rtt_stdio_enable_stdin is called Note that we assume only one caller invoked this function */ } - uint32_t last_wakeup = xtimer_now(); + xtimer_ticks32_t last_wakeup = xtimer_now(); while(1) { xtimer_periodic_wakeup(&last_wakeup, STDIO_POLL_INTERVAL); res = rtt_read(buffer, count); @@ -326,7 +326,7 @@ int uart_stdio_read(char* buffer, int count) { int uart_stdio_write(const char* buffer, int len) { int written = rtt_write(buffer, len); - uint32_t last_wakeup = xtimer_now(); + xtimer_ticks32_t last_wakeup = xtimer_now(); while (blocking_stdout && written < len) { xtimer_periodic_wakeup(&last_wakeup, STDIO_POLL_INTERVAL); written += rtt_write(&buffer[written], len-written);