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();