2017-10-15 22:41:59 +08:00
|
|
|
/*
|
2021-03-08 18:19:04 +08:00
|
|
|
* Copyright (c) 2006-2021, 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__
|
|
|
|
|
2021-10-26 12:51:32 +08:00
|
|
|
#include <rtconfig.h>
|
|
|
|
|
2019-09-14 22:52:06 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
2017-10-15 22:41:59 +08:00
|
|
|
|
2021-09-22 00:51:26 +08:00
|
|
|
int libc_system_init(void);
|
2021-11-24 22:14:46 +08:00
|
|
|
#ifdef RT_USING_POSIX_DEVIO
|
2019-09-15 11:47:11 +08:00
|
|
|
int libc_stdio_get_console(void);
|
2021-09-22 00:51:26 +08:00
|
|
|
int libc_stdio_set_console(const char* device_name, int mode);
|
2021-11-24 22:14:46 +08:00
|
|
|
#endif /* RT_USING_POSIX_DEVIO */
|
2021-09-22 00:51:26 +08:00
|
|
|
|
2019-09-14 22:52:06 +08:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2017-10-15 22:41:59 +08:00
|
|
|
|
|
|
|
#endif
|