libc.h 601 字节
Newer Older
B
bernard 已提交
1
/*
2
 * Copyright (c) 2006-2018, RT-Thread Development Team
B
bernard 已提交
3
 *
4
 * SPDX-License-Identifier: Apache-2.0
B
bernard 已提交
5 6 7 8 9 10 11 12 13 14
 *
 * Change Logs:
 * Date           Author       Notes
 * 2017/10/15     bernard      the first version
 */
#ifndef __RTT_LIBC_H__
#define __RTT_LIBC_H__

#include <stddef.h>

15 16 17 18
#ifdef __cplusplus
extern "C" {
#endif
    int libc_system_init(void);
B
bernard 已提交
19

20 21 22 23 24 25 26
    int libc_stdio_set_console(const char* device_name, int mode);
    int libc_stdio_get_console(void);
    int libc_stdio_read(void* buffer, size_t size);
    int libc_stdio_write(const void* buffer, size_t size);
#ifdef __cplusplus
}
#endif
B
bernard 已提交
27 28

#endif