From 21b81a45462e75fbcd8f537a48655b8b4eab9fc9 Mon Sep 17 00:00:00 2001 From: Jukka Laitinen Date: Wed, 2 Oct 2024 13:49:48 +0300 Subject: [PATCH] drivers/usbdev/cdcacm.c: Fix compilation issues Add #ifdef CONFIG_SERIAL_TXDMA/RXDMA in g_uartops init Signed-off-by: Jukka Laitinen --- drivers/usbdev/cdcacm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/usbdev/cdcacm.c b/drivers/usbdev/cdcacm.c index e06b7ba19e0b3..a7e6260ba6d61 100644 --- a/drivers/usbdev/cdcacm.c +++ b/drivers/usbdev/cdcacm.c @@ -265,12 +265,18 @@ static const struct uart_ops_s g_uartops = #ifdef CONFIG_SERIAL_IFLOWCONTROL cdcuart_rxflowcontrol, /* rxflowcontrol */ #endif +#ifdef CONFIG_SERIAL_TXDMA cdcuart_dmasend, /* dmasend */ +#endif +#ifdef CONFIG_SERIAL_RXDMA cdcuart_dmareceive, /* dmareceive */ NULL, /* dmarxfree */ +#endif +#ifdef CONFIG_SERIAL_TXDMA NULL, /* dmatxavail */ +#endif NULL, /* send */ - cdcuart_txint, /* txinit */ + cdcuart_txint, /* txint */ cdcuart_txready, /* txready */ cdcuart_txempty, /* txempty */ cdcuart_release, /* release */