From fb9278b917c4c9fc70c2533041f1c5f106dd0ac4 Mon Sep 17 00:00:00 2001 From: joaopeixoto13 Date: Mon, 29 Jan 2024 15:20:48 +0000 Subject: [PATCH] fix(plat/drivers): add missing uart_putc function prototype Add missing uart_putc function prototype to 8250_uart.h and nxp_uart.h files. Signed-off-by: joaopeixoto13 --- src/platform/drivers/8250_uart/inc/drivers/8250_uart.h | 1 + src/platform/drivers/nxp_uart/inc/drivers/nxp_uart.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/platform/drivers/8250_uart/inc/drivers/8250_uart.h b/src/platform/drivers/8250_uart/inc/drivers/8250_uart.h index 821355dc7..5a1fd352d 100644 --- a/src/platform/drivers/8250_uart/inc/drivers/8250_uart.h +++ b/src/platform/drivers/8250_uart/inc/drivers/8250_uart.h @@ -64,5 +64,6 @@ typedef struct uart8250_hw bao_uart_t; void uart_enable(volatile struct uart8250_hw* uart); void uart_init(volatile struct uart8250_hw* uart); +void uart_putc(volatile struct uart8250_hw* uart, int8_t c); #endif /* UART8250_H */ diff --git a/src/platform/drivers/nxp_uart/inc/drivers/nxp_uart.h b/src/platform/drivers/nxp_uart/inc/drivers/nxp_uart.h index 843aa6b55..cce7087c5 100644 --- a/src/platform/drivers/nxp_uart/inc/drivers/nxp_uart.h +++ b/src/platform/drivers/nxp_uart/inc/drivers/nxp_uart.h @@ -33,4 +33,5 @@ typedef struct lpuart bao_uart_t; void uart_enable(volatile struct lpuart* uart); void uart_init(volatile struct lpuart* uart); +void uart_putc(volatile struct lpuart* uart, char c); #endif /* __UART_NXP_H */