1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

stdio_uart: adapt for isrpipe API change

This commit is contained in:
Martine Lenders 2019-06-05 18:04:17 +02:00
parent d9049dad87
commit b1bfd70e54

View File

@ -48,7 +48,7 @@ extern ethos_t ethos;
#include "debug.h"
#ifdef MODULE_STDIO_UART_RX
static char _rx_buf_mem[STDIO_UART_RX_BUFSIZE];
static uint8_t _rx_buf_mem[STDIO_UART_RX_BUFSIZE];
isrpipe_t stdio_uart_isrpipe = ISRPIPE_INIT(_rx_buf_mem);
#endif
@ -81,7 +81,7 @@ void stdio_init(void)
ssize_t stdio_read(void* buffer, size_t count)
{
#ifdef MODULE_STDIO_UART_RX
return (ssize_t)isrpipe_read(&stdio_uart_isrpipe, (char *)buffer, count);
return (ssize_t)isrpipe_read(&stdio_uart_isrpipe, buffer, count);
#else
(void)buffer;
(void)count;