serial to use DMA, returning GPS

This commit is contained in:
rusEfi 2017-05-23 18:52:52 -04:00
parent 7354c90251
commit 39ac59b5b6
3 changed files with 11 additions and 11 deletions

View File

@ -243,16 +243,21 @@
#define EFI_CONSOLE_UART_DEVICE (&SD3)
#endif
// Use 'UART' DMA-mode driver instead of 'SERIAL'
#define TS_UART_DMA_MODE FALSE
/**
* Use 'HAL_USE_UART' DMA-mode driver instead of 'HAL_USE_SERIAL'
*
* See also
* STM32_SERIAL_USE_USARTx
* STM32_UART_USE_USARTx
* in mcuconf.h
*/
#define TS_UART_DMA_MODE TRUE
#define TS_DMA_UART_DEVICE (&UARTD3)
#define TS_SERIAL_UART_DEVICE (&SD3)
// todo: add DMA-mode for Console & GPS?
// todo: add DMA-mode for Console?
#if TS_UART_DMA_MODE
#undef EFI_UART_GPS
#define EFI_UART_GPS FALSE
#undef EFI_CONSOLE_UART_DEVICE
#endif

View File

@ -132,13 +132,8 @@
* @brief Enables the SERIAL subsystem.
*/
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
/* Configured in efifeatures.h */
#if TS_UART_DMA_MODE
#define HAL_USE_SERIAL FALSE
#else
#define HAL_USE_SERIAL TRUE
#endif
#endif
/**
* @brief Enables the SERIAL over USB subsystem.

View File

@ -281,7 +281,7 @@
*/
#define STM32_SERIAL_USE_USART1 TRUE
#define STM32_SERIAL_USE_USART2 TRUE
#define STM32_SERIAL_USE_USART3 TRUE
#define STM32_SERIAL_USE_USART3 FALSE
#define STM32_SERIAL_USE_UART4 FALSE
#define STM32_SERIAL_USE_UART5 FALSE
#define STM32_SERIAL_USE_USART6 FALSE