Enable DMA based serial driver and add polling serial driver for more data.

This commit is contained in:
Jan Okle
2018-08-14 09:38:15 -04:00
committed by Daniel Agar
parent d2aa68f62c
commit 0754b3566c
3 changed files with 15 additions and 18 deletions
+4 -4
View File
@@ -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)