From 6e7f596c83588739c2a7804bf2a4ec94fe9c2298 Mon Sep 17 00:00:00 2001 From: Alan Carvalho de Assis Date: Sat, 11 Oct 2025 18:12:29 -0300 Subject: [PATCH] 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 --- drivers/misc/lwl_console.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/misc/lwl_console.c b/drivers/misc/lwl_console.c index 68333d6bb9a..61806ccfd15 100644 --- a/drivers/misc/lwl_console.c +++ b/drivers/misc/lwl_console.c @@ -294,6 +294,22 @@ static ssize_t lwlconsole_write(FAR struct file *filep, * 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 ****************************************************************************/