mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00:00
nxp_fmuk66-e:DMA Poll not needed
This commit is contained in:
committed by
David Sidrane
parent
2a7c95d7ac
commit
39d684958d
@@ -235,25 +235,6 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
|||||||
syslog(LOG_ERR, "DMA alloc FAILED\n");
|
syslog(LOG_ERR, "DMA alloc FAILED\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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)kinetis_serial_dma_poll,
|
|
||||||
NULL);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* initial LED state */
|
/* initial LED state */
|
||||||
drv_led_start();
|
drv_led_start();
|
||||||
led_off(LED_RED);
|
led_off(LED_RED);
|
||||||
|
|||||||
Reference in New Issue
Block a user