From 329f595bca22ca7f253833d0189c1bf61c23c631 Mon Sep 17 00:00:00 2001 From: px4dev Date: Thu, 10 Jan 2013 02:11:53 -0800 Subject: [PATCH] Don't try to set up serial polling before the HRT has been started. --- apps/drivers/boards/px4io/px4io_init.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/apps/drivers/boards/px4io/px4io_init.c b/apps/drivers/boards/px4io/px4io_init.c index cb288aca84..14e8dc13a9 100644 --- a/apps/drivers/boards/px4io/px4io_init.c +++ b/apps/drivers/boards/px4io/px4io_init.c @@ -95,25 +95,4 @@ __EXPORT void stm32_boardinitialize(void) stm32_configgpio(GPIO_ADC_VBATT); stm32_configgpio(GPIO_ADC_IN5); - - /* set up the serial DMA polling */ -#ifdef SERIAL_HAVE_DMA - { - static struct hrt_call serial_dma_call; - struct timespec ts; - - /* - * Poll at 1ms intervals for received bytes that have not triggered - * a DMA event. - */ - ts.tv_sec = 0; - ts.tv_nsec = 1000000; - - hrt_call_every(&serial_dma_call, - ts_to_abstime(&ts), - ts_to_abstime(&ts), - (hrt_callout)stm32_serial_dma_poll, - NULL); - } -#endif }