1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Add and handle USE_DMA

This commit is contained in:
jflyper 2018-10-09 00:35:58 +09:00
parent 45b7fa8095
commit 1c76469251
5 changed files with 14 additions and 2 deletions

View file

@ -41,6 +41,7 @@ typedef enum {
typedef struct uartPort_s {
serialPort_t port;
#ifdef USE_DMA
#if defined(STM32F7)
DMA_HandleTypeDef rxDMAHandle;
DMA_HandleTypeDef txDMAHandle;
@ -61,6 +62,7 @@ typedef struct uartPort_s {
uint32_t txDMAPeripheralBaseAddr;
uint32_t rxDMAPeripheralBaseAddr;
#endif // USE_DMA
#ifdef USE_HAL_DRIVER
// All USARTs can also be used as UART, and we use them only as UART.