summaryrefslogtreecommitdiff
path: root/components/libc/compilers/gcc/newlib/libc.h
blob: c470698aa600f90336e41ad8f199918afeed748d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * 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__

#ifndef _EXFUN
#define _EXFUN(name, proto)     name proto
#endif

#ifdef __cplusplus
extern "C" {
#endif
int libc_system_init(void);
int libc_stdio_get_console(void);
int libc_stdio_set_console(const char* device_name, int mode);

#ifdef __cplusplus
}
#endif

#endif