mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-10-19 03:13:34 +08:00
[libc] Add libc_stdio_get_console .
This commit is contained in:
@@ -58,6 +58,11 @@ int libc_stdio_set_console(const char* device_name, int mode)
|
||||
return std_fd;
|
||||
}
|
||||
|
||||
int libc_stdio_get_console(void)
|
||||
{
|
||||
return std_fd;
|
||||
}
|
||||
|
||||
int libc_stdio_read(void *buffer, size_t size)
|
||||
{
|
||||
return read(std_fd, buffer, size);
|
||||
|
Reference in New Issue
Block a user