From 386fbe83d9ae6147c5b11fb1063eea5e428e4374 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Mon, 4 Apr 2022 12:55:55 -0700 Subject: [PATCH] boards:Remove dma_poll --- boards/airmind/mindpx-v2/src/init.c | 6 ------ boards/ark/can-rtk-gps/src/init.c | 6 ------ boards/atl/mantis-edu/src/init.c | 6 ------ boards/av/x-v1/src/init.c | 6 ------ boards/bitcraze/crazyflie/src/init.c | 6 ------ boards/bitcraze/crazyflie21/src/init.c | 6 ------ boards/cubepilot/cubeyellow/src/init.c | 6 ------ boards/holybro/can-gps-v1/src/init.c | 6 ------ boards/holybro/durandal-v1/src/init.c | 6 ------ boards/holybro/kakutef7/src/init.c | 6 ------ boards/holybro/kakuteh7/src/init.c | 6 ------ boards/holybro/pix32v5/src/init.c | 6 ------ boards/matek/gnss-m9n-f4/src/init.c | 8 -------- boards/modalai/fc-v1/src/init.c | 6 ------ boards/modalai/fc-v2/src/init.c | 6 ------ boards/mro/ctrl-zero-f7-oem/src/init.c | 6 ------ boards/mro/ctrl-zero-f7/src/init.c | 6 ------ boards/mro/x21-777/src/init.c | 6 ------ boards/mro/x21/src/init.c | 6 ------ boards/omnibus/f4sd/src/init.c | 6 ------ boards/px4/fmu-v2/src/init.c | 6 ------ boards/px4/fmu-v3/src/init.c | 6 ------ boards/px4/fmu-v4/src/init.c | 6 ------ boards/px4/fmu-v4pro/src/init.c | 6 ------ boards/px4/fmu-v5/src/init.c | 6 ------ boards/px4/fmu-v5x/src/init.cpp | 6 ------ boards/px4/fmu-v6u/src/init.c | 6 ------ boards/px4/fmu-v6x/src/init.c | 6 ------ boards/spracing/h7extreme/src/init.c | 6 ------ boards/uvify/core/src/init.c | 6 ------ 30 files changed, 182 deletions(-) diff --git a/boards/airmind/mindpx-v2/src/init.c b/boards/airmind/mindpx-v2/src/init.c index 30a3e6a679..0fa45ce3c3 100644 --- a/boards/airmind/mindpx-v2/src/init.c +++ b/boards/airmind/mindpx-v2/src/init.c @@ -218,12 +218,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/ark/can-rtk-gps/src/init.c b/boards/ark/can-rtk-gps/src/init.c index 7405575781..f6b32dd8d1 100644 --- a/boards/ark/can-rtk-gps/src/init.c +++ b/boards/ark/can-rtk-gps/src/init.c @@ -139,12 +139,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) { px4_platform_init(); -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - #if defined(FLASH_BASED_PARAMS) static sector_descriptor_t params_sector_map[] = { {2, 16 * 1024, 0x08008000}, diff --git a/boards/atl/mantis-edu/src/init.c b/boards/atl/mantis-edu/src/init.c index 461c16377e..c41643b50c 100644 --- a/boards/atl/mantis-edu/src/init.c +++ b/boards/atl/mantis-edu/src/init.c @@ -219,12 +219,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - board_pwr_init(1); /* initial LED state */ diff --git a/boards/av/x-v1/src/init.c b/boards/av/x-v1/src/init.c index 8e12ee823e..d8e2d621eb 100644 --- a/boards/av/x-v1/src/init.c +++ b/boards/av/x-v1/src/init.c @@ -161,12 +161,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - (void) board_hardfault_init(2, true); #ifdef CONFIG_MMCSD diff --git a/boards/bitcraze/crazyflie/src/init.c b/boards/bitcraze/crazyflie/src/init.c index c1364b75af..b1179feaf8 100644 --- a/boards/bitcraze/crazyflie/src/init.c +++ b/boards/bitcraze/crazyflie/src/init.c @@ -131,12 +131,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) { px4_platform_init(); -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/bitcraze/crazyflie21/src/init.c b/boards/bitcraze/crazyflie21/src/init.c index 6d1603600a..5ebab7f76d 100644 --- a/boards/bitcraze/crazyflie21/src/init.c +++ b/boards/bitcraze/crazyflie21/src/init.c @@ -131,12 +131,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) { px4_platform_init(); -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/cubepilot/cubeyellow/src/init.c b/boards/cubepilot/cubeyellow/src/init.c index 8ba8972402..9fb2813173 100644 --- a/boards/cubepilot/cubeyellow/src/init.c +++ b/boards/cubepilot/cubeyellow/src/init.c @@ -164,12 +164,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/holybro/can-gps-v1/src/init.c b/boards/holybro/can-gps-v1/src/init.c index 2495283c36..f658744a75 100644 --- a/boards/holybro/can-gps-v1/src/init.c +++ b/boards/holybro/can-gps-v1/src/init.c @@ -166,12 +166,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) #endif // FLASH_BASED_PARAMS -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - rgb_led(0, 255, 0, 0); return OK; } diff --git a/boards/holybro/durandal-v1/src/init.c b/boards/holybro/durandal-v1/src/init.c index f8dc55d72f..5a447195a2 100644 --- a/boards/holybro/durandal-v1/src/init.c +++ b/boards/holybro/durandal-v1/src/init.c @@ -244,12 +244,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/holybro/kakutef7/src/init.c b/boards/holybro/kakutef7/src/init.c index da2a545c2a..582afe768c 100644 --- a/boards/holybro/kakutef7/src/init.c +++ b/boards/holybro/kakutef7/src/init.c @@ -200,12 +200,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/holybro/kakuteh7/src/init.c b/boards/holybro/kakuteh7/src/init.c index a9fe66548e..b3d45aeecd 100644 --- a/boards/holybro/kakuteh7/src/init.c +++ b/boards/holybro/kakuteh7/src/init.c @@ -214,12 +214,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/holybro/pix32v5/src/init.c b/boards/holybro/pix32v5/src/init.c index 2153838a60..830390208b 100644 --- a/boards/holybro/pix32v5/src/init.c +++ b/boards/holybro/pix32v5/src/init.c @@ -251,12 +251,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/matek/gnss-m9n-f4/src/init.c b/boards/matek/gnss-m9n-f4/src/init.c index 7556da22dc..b8011eb0e6 100755 --- a/boards/matek/gnss-m9n-f4/src/init.c +++ b/boards/matek/gnss-m9n-f4/src/init.c @@ -145,14 +145,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) { px4_platform_init(); -#if defined(SERIAL_HAVE_RXDMA) - - /* 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)stm32_serial_dma_poll, NULL); -#endif - /* configure the DMA allocator */ if (board_dma_alloc_init() < 0) { diff --git a/boards/modalai/fc-v1/src/init.c b/boards/modalai/fc-v1/src/init.c index beee10b875..d35ef39af4 100644 --- a/boards/modalai/fc-v1/src/init.c +++ b/boards/modalai/fc-v1/src/init.c @@ -256,12 +256,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/modalai/fc-v2/src/init.c b/boards/modalai/fc-v2/src/init.c index dbc6ec4637..946d483baf 100644 --- a/boards/modalai/fc-v2/src/init.c +++ b/boards/modalai/fc-v2/src/init.c @@ -231,12 +231,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/mro/ctrl-zero-f7-oem/src/init.c b/boards/mro/ctrl-zero-f7-oem/src/init.c index 0b0b07ff12..fd7d43f9aa 100644 --- a/boards/mro/ctrl-zero-f7-oem/src/init.c +++ b/boards/mro/ctrl-zero-f7-oem/src/init.c @@ -205,12 +205,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/mro/ctrl-zero-f7/src/init.c b/boards/mro/ctrl-zero-f7/src/init.c index 0b0b07ff12..fd7d43f9aa 100644 --- a/boards/mro/ctrl-zero-f7/src/init.c +++ b/boards/mro/ctrl-zero-f7/src/init.c @@ -205,12 +205,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/mro/x21-777/src/init.c b/boards/mro/x21-777/src/init.c index 3f5f00e377..0d8d716018 100644 --- a/boards/mro/x21-777/src/init.c +++ b/boards/mro/x21-777/src/init.c @@ -194,12 +194,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/mro/x21/src/init.c b/boards/mro/x21/src/init.c index 107312832b..b36c4c7211 100644 --- a/boards/mro/x21/src/init.c +++ b/boards/mro/x21/src/init.c @@ -241,12 +241,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/omnibus/f4sd/src/init.c b/boards/omnibus/f4sd/src/init.c index 746a544c82..5ccd451f14 100644 --- a/boards/omnibus/f4sd/src/init.c +++ b/boards/omnibus/f4sd/src/init.c @@ -244,12 +244,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_BLUE); diff --git a/boards/px4/fmu-v2/src/init.c b/boards/px4/fmu-v2/src/init.c index 61cc923fd6..bda419e645 100644 --- a/boards/px4/fmu-v2/src/init.c +++ b/boards/px4/fmu-v2/src/init.c @@ -432,12 +432,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/px4/fmu-v3/src/init.c b/boards/px4/fmu-v3/src/init.c index 2973184961..9c0986b6fc 100644 --- a/boards/px4/fmu-v3/src/init.c +++ b/boards/px4/fmu-v3/src/init.c @@ -432,12 +432,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_AMBER); diff --git a/boards/px4/fmu-v4/src/init.c b/boards/px4/fmu-v4/src/init.c index adf97b6800..7c3dd4555d 100644 --- a/boards/px4/fmu-v4/src/init.c +++ b/boards/px4/fmu-v4/src/init.c @@ -267,12 +267,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - // Initial LED state. drv_led_start(); led_off(LED_RED); diff --git a/boards/px4/fmu-v4pro/src/init.c b/boards/px4/fmu-v4pro/src/init.c index 132db1f924..92856dc0f4 100644 --- a/boards/px4/fmu-v4pro/src/init.c +++ b/boards/px4/fmu-v4pro/src/init.c @@ -288,12 +288,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/px4/fmu-v5/src/init.c b/boards/px4/fmu-v5/src/init.c index cfec81bae6..f8e0d08f26 100644 --- a/boards/px4/fmu-v5/src/init.c +++ b/boards/px4/fmu-v5/src/init.c @@ -254,12 +254,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/px4/fmu-v5x/src/init.cpp b/boards/px4/fmu-v5x/src/init.cpp index a6606761db..99b64e30a7 100644 --- a/boards/px4/fmu-v5x/src/init.cpp +++ b/boards/px4/fmu-v5x/src/init.cpp @@ -248,12 +248,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/px4/fmu-v6u/src/init.c b/boards/px4/fmu-v6u/src/init.c index 1563331909..55891a9416 100644 --- a/boards/px4/fmu-v6u/src/init.c +++ b/boards/px4/fmu-v6u/src/init.c @@ -240,12 +240,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/px4/fmu-v6x/src/init.c b/boards/px4/fmu-v6x/src/init.c index 3dc9a10ee9..4ecf43a3e9 100644 --- a/boards/px4/fmu-v6x/src/init.c +++ b/boards/px4/fmu-v6x/src/init.c @@ -247,12 +247,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/spracing/h7extreme/src/init.c b/boards/spracing/h7extreme/src/init.c index b241fb6286..71ec8248e5 100644 --- a/boards/spracing/h7extreme/src/init.c +++ b/boards/spracing/h7extreme/src/init.c @@ -205,12 +205,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "[boot] DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - /* initial LED state */ drv_led_start(); led_off(LED_RED); diff --git a/boards/uvify/core/src/init.c b/boards/uvify/core/src/init.c index 3418877c6f..69f7792eec 100644 --- a/boards/uvify/core/src/init.c +++ b/boards/uvify/core/src/init.c @@ -267,12 +267,6 @@ __EXPORT int board_app_initialize(uintptr_t arg) syslog(LOG_ERR, "DMA alloc FAILED\n"); } -#if defined(SERIAL_HAVE_RXDMA) - // 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)stm32_serial_dma_poll, NULL); -#endif - // Initial LED state. drv_led_start(); led_off(LED_RED);