From f2086dda9a56e34013acd20a5c03dac5ff69a1b8 Mon Sep 17 00:00:00 2001 From: Hauke Petersen Date: Mon, 19 Oct 2015 14:51:48 +0200 Subject: [PATCH] sys/uart_stdio: adapted to UART interface changes --- sys/uart_stdio/uart_stdio.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sys/uart_stdio/uart_stdio.c b/sys/uart_stdio/uart_stdio.c index 8686b786dd..cc5f14037e 100644 --- a/sys/uart_stdio/uart_stdio.c +++ b/sys/uart_stdio/uart_stdio.c @@ -71,7 +71,7 @@ void uart_stdio_rx_cb(void *arg, char data) void uart_stdio_init(void) { mutex_lock(&_rx_mutex); - uart_init(STDIO, STDIO_BAUDRATE, uart_stdio_rx_cb, 0, 0); + uart_init(STDIO, STDIO_BAUDRATE, uart_stdio_rx_cb, NULL); } int uart_stdio_read(char* buffer, int count) @@ -85,11 +85,6 @@ int uart_stdio_read(char* buffer, int count) int uart_stdio_write(const char* buffer, int len) { - unsigned int i = len; - - while (i--) { - uart_write_blocking(STDIO, *buffer++); - } - + uart_write(STDIO, (uint8_t *)buffer, (size_t)len); return len; }