up_putc: do up_putc when enable CONFIG_ARCH_LOWPUTC

Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
Jiuzhu Dong 2021-12-14 11:52:25 +08:00 committed by Xiang Xiao
parent 9a53601ba9
commit 5a22d33475
1 changed files with 2 additions and 2 deletions

View File

@ -573,10 +573,10 @@ void up_uartloop(void)
* Name: up_putc
****************************************************************************/
#ifdef USE_DEVCONSOLE
int up_putc(int ch)
{
#ifdef USE_DEVCONSOLE
tty_send(&g_console_dev, ch);
#endif
return 0;
}
#endif