Skip to content

Commit

Permalink
drivers/usbdev/cdcacm.c: Fix compilation issues
Browse files Browse the repository at this point in the history
Add #ifdef CONFIG_SERIAL_TXDMA/RXDMA in g_uartops init

Signed-off-by: Jukka Laitinen <[email protected]>
  • Loading branch information
jlaitine committed Oct 2, 2024
1 parent cbd88a7 commit 21b81a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion drivers/usbdev/cdcacm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 21b81a4

Please sign in to comment.