The friendly Operating System for the Internet of Things
rtt_stdio.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2016 Michael Andersen <m.andersen@berkeley.edu>
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
21 #ifndef RTT_STDIO_H
22 #define RTT_STDIO_H
23 
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27 
31 void uart_stdio_init(void);
32 
42 int uart_stdio_read(char* buffer, int len);
43 
53 int uart_stdio_write(const char* buffer, int len);
54 
59 void rtt_stdio_enable_stdin(void);
60 
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif /* RTT_STDIO_H */
void uart_stdio_init(void)
initialize the module.
void rtt_stdio_enable_blocking_stdout(void)
enable stdout blocking and free space polling.
void rtt_stdio_enable_stdin(void)
enable stdin polling, at a power consumption cost.
int uart_stdio_read(char *buffer, int len)
read len bytes from stdio uart into buffer
int uart_stdio_write(const char *buffer, int len)
write len bytes from buffer into uart