2017-10-15 22:41:59 +08:00
|
|
|
/*
|
2018-10-14 19:28:18 +08:00
|
|
|
* Copyright (c) 2006-2018, RT-Thread Development Team
|
2017-10-15 22:41:59 +08:00
|
|
|
*
|
2018-10-14 19:28:18 +08:00
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
2017-10-15 22:41:59 +08:00
|
|
|
*
|
|
|
|
* Change Logs:
|
|
|
|
* Date Author Notes
|
|
|
|
* 2017/10/15 bernard the first version
|
|
|
|
*/
|
|
|
|
#ifndef __RTT_LIBC_H__
|
|
|
|
#define __RTT_LIBC_H__
|
|
|
|
|
|
|
|
#include <stddef.h>
|
|
|
|
|
|
|
|
int libc_system_init(void);
|
|
|
|
|
|
|
|
int libc_stdio_set_console(const char* device_name, int mode);
|
2018-01-12 16:55:47 +08:00
|
|
|
int libc_stdio_get_console(void);
|
2017-10-15 22:41:59 +08:00
|
|
|
int libc_stdio_read (void *buffer, size_t size);
|
2017-10-17 09:48:35 +08:00
|
|
|
int libc_stdio_write(const void *buffer, size_t size);
|
2017-10-15 22:41:59 +08:00
|
|
|
|
|
|
|
#endif
|