From 41a4045630b18b058fde5a62be0d12af1a8dad23 Mon Sep 17 00:00:00 2001 From: Daniel Agar Date: Wed, 13 Oct 2021 13:45:24 -0400 Subject: [PATCH] boards: nxp_fmuk66 fix serial_dma_poll --- boards/nxp/fmuk66-e/src/init.c | 4 ++-- boards/nxp/fmuk66-v3/src/init.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boards/nxp/fmuk66-e/src/init.c b/boards/nxp/fmuk66-e/src/init.c index ad4c237aec..289dfab1ee 100644 --- a/boards/nxp/fmuk66-e/src/init.c +++ b/boards/nxp/fmuk66-e/src/init.c @@ -254,11 +254,11 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) +#if defined(SERIAL_HAVE_DMA) || defined(LPSERIAL_HAVE_DMA) // set up the serial DMA polling at 1ms intervals for received bytes that have not triggered a DMA event. static struct hrt_call serial_dma_call; hrt_call_every(&serial_dma_call, 1000, 1000, (hrt_callout)kinetis_lpserial_dma_poll_all, NULL); -#endif +#endif /* SERIAL_HAVE_DMA || LPSERIAL_HAVE_DMA */ /* initial LED state */ drv_led_start(); diff --git a/boards/nxp/fmuk66-v3/src/init.c b/boards/nxp/fmuk66-v3/src/init.c index a8fcc91e51..c56880f59d 100644 --- a/boards/nxp/fmuk66-v3/src/init.c +++ b/boards/nxp/fmuk66-v3/src/init.c @@ -254,11 +254,11 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) +#if defined(SERIAL_HAVE_DMA) || defined(LPSERIAL_HAVE_DMA) // set up the serial DMA polling at 1ms intervals for received bytes that have not triggered a DMA event. static struct hrt_call serial_dma_call; hrt_call_every(&serial_dma_call, 1000, 1000, (hrt_callout)kinetis_lpserial_dma_poll_all, NULL); -#endif +#endif /* SERIAL_HAVE_DMA || LPSERIAL_HAVE_DMA */ /* initial LED state */ drv_led_start();