mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-24 22:04:54 +08:00
update building script.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1728 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -940,6 +940,16 @@ rt_int32_t rt_sprintf(char *buf, const char *format, ...)
|
||||
#ifdef RT_USING_CONSOLE
|
||||
|
||||
#ifdef RT_USING_DEVICE
|
||||
/**
|
||||
* This function returns the device using in console.
|
||||
*
|
||||
* @return the device using in console or RT_NULL
|
||||
*/
|
||||
rt_device_t rt_console_get_device(void)
|
||||
{
|
||||
return _console_device;
|
||||
}
|
||||
|
||||
/**
|
||||
* This function will set a device as console device.
|
||||
* After set a device to console, all output of rt_kprintf will be
|
||||
|
||||
Reference in New Issue
Block a user