Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
stdio_base.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
3
* 2018 Freie Universität Berlin
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
23
#ifndef STDIO_BASE_H
24
#define STDIO_BASE_H
25
26
#include <unistd.h>
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
35
void
stdio_init
(
void
);
36
46
ssize_t
stdio_read
(
void
* buffer,
size_t
max_len);
47
57
ssize_t
stdio_write
(
const
void
* buffer,
size_t
len);
58
59
#ifdef __cplusplus
60
}
61
#endif
62
63
#endif
/* STDIO_BASE_H */
stdio_write
ssize_t stdio_write(const void *buffer, size_t len)
write len bytes from buffer into uart
stdio_init
void stdio_init(void)
initialize the module
stdio_read
ssize_t stdio_read(void *buffer, size_t max_len)
read len bytes from stdio uart into buffer
Generated on Tue Nov 24 2020 19:46:52 by
1.8.17