rt-thread/components/libc/posix/io/stdio/libc.h

31 lines
544 B
C
Raw Normal View History

/*
2021-03-08 18:19:04 +08:00
* Copyright (c) 2006-2021, RT-Thread Development Team
*
2018-10-14 19:28:18 +08:00
* SPDX-License-Identifier: Apache-2.0
*
* 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>
#ifdef __cplusplus
extern "C" {
#endif
int libc_system_init(void);
2022-01-03 06:51:44 +08:00
#ifdef RT_USING_POSIX_STDIO
int libc_stdio_get_console(void);
int libc_stdio_set_console(const char* device_name, int mode);
2022-01-03 06:51:44 +08:00
#endif /* RT_USING_POSIX_STDIO */
#ifdef __cplusplus
}
#endif
#endif