mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
stdio_uart: adapt for isrpipe API change
This commit is contained in:
parent
d9049dad87
commit
b1bfd70e54
@ -48,7 +48,7 @@ extern ethos_t ethos;
|
|||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|
||||||
#ifdef MODULE_STDIO_UART_RX
|
#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);
|
isrpipe_t stdio_uart_isrpipe = ISRPIPE_INIT(_rx_buf_mem);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -81,7 +81,7 @@ void stdio_init(void)
|
|||||||
ssize_t stdio_read(void* buffer, size_t count)
|
ssize_t stdio_read(void* buffer, size_t count)
|
||||||
{
|
{
|
||||||
#ifdef MODULE_STDIO_UART_RX
|
#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
|
#else
|
||||||
(void)buffer;
|
(void)buffer;
|
||||||
(void)count;
|
(void)count;
|
||||||
|
Loading…
Reference in New Issue
Block a user