px4_fmu-v5:Use Serial TX DMA on Telem 2

This commit is contained in:
David Sidrane
2019-12-03 01:28:59 -08:00
committed by Daniel Agar
parent 1d3f722201
commit 74b6cc5bce
4 changed files with 5 additions and 3 deletions
@@ -355,8 +355,8 @@
/* UART RX DMA configurations */
#define DMAMAP_USART1_RX DMAMAP_USART1_RX_2
#define DMAMAP_USART3_TX DMAMAP_USART3_TX_1
#define DMAMAP_USART6_RX DMAMAP_USART6_RX_2
/* CAN
*
* CAN1 is routed to transceiver.
@@ -242,6 +242,7 @@ CONFIG_USART3_OFLOWCONTROL=y
CONFIG_USART3_RXBUFSIZE=600
CONFIG_USART3_RXDMA=y
CONFIG_USART3_TXBUFSIZE=3000
CONFIG_USART3_TXDMA=y
CONFIG_USART6_BAUD=57600
CONFIG_USART6_RXBUFSIZE=600
CONFIG_USART6_RXDMA=y
+2 -1
View File
@@ -236,6 +236,7 @@ __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 */
static struct hrt_call serial_dma_call;
@@ -252,7 +253,7 @@ __EXPORT int board_app_initialize(uintptr_t arg)
ts_to_abstime(&ts),
(hrt_callout)stm32_serial_dma_poll,
NULL);
#endif
/* initial LED state */
drv_led_start();