mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 10:13:34 +08:00
Enable DMA based serial driver and add polling serial driver for more data.
This commit is contained in:
@@ -62,6 +62,7 @@
|
||||
#include <nuttx/analog/adc.h>
|
||||
|
||||
#include <kinetis.h>
|
||||
#include <kinetis_uart.h>
|
||||
#include <chip/kinetis_uart.h>
|
||||
#include "board_config.h"
|
||||
|
||||
@@ -262,10 +263,7 @@ int up_rtc_getdatetime(FAR struct tm *tp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void kinetis_serial_dma_poll(void)
|
||||
{
|
||||
// todo:Stubbed
|
||||
}
|
||||
|
||||
//FIXME: Stubs -----v
|
||||
|
||||
|
||||
@@ -337,6 +335,7 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
||||
#endif
|
||||
|
||||
/* set up the serial DMA polling */
|
||||
#ifdef SERIAL_HAVE_DMA
|
||||
static struct hrt_call serial_dma_call;
|
||||
struct timespec ts;
|
||||
|
||||
@@ -352,6 +351,7 @@ __EXPORT int board_app_initialize(uintptr_t arg)
|
||||
ts_to_abstime(&ts),
|
||||
(hrt_callout)kinetis_serial_dma_poll,
|
||||
NULL);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_KINETIS_BBSRAM)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user