mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
drivers/lwl: Fix lwl_console.c to support is own up_putc()
After removing stm32_serial.c compilation we need to create a new up_putc() to be used by syslog. Signed-off-by: Alan C. Assis <acassis@gmail.com>
This commit is contained in:
committed by
Matteo Golin
parent
744ce66135
commit
6e7f596c83
@@ -294,6 +294,22 @@ static ssize_t lwlconsole_write(FAR struct file *filep,
|
|||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
|
/****************************************************************************
|
||||||
|
* Name: up_putc
|
||||||
|
****************************************************************************/
|
||||||
|
|
||||||
|
void up_putc(int ch)
|
||||||
|
{
|
||||||
|
/* If link not initialize just return */
|
||||||
|
|
||||||
|
if (!linkactive())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
write8bits(LWL_PORT_CONSOLE, (uint8_t)ch);
|
||||||
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Name: lwlconsole_init
|
* Name: lwlconsole_init
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|||||||
Reference in New Issue
Block a user