mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
F7 performance improvements
This commit is contained in:
parent
c1ed72644f
commit
8d76579c9e
5 changed files with 32 additions and 20 deletions
|
@ -32,6 +32,7 @@
|
|||
#include "io.h"
|
||||
#include "nvic.h"
|
||||
#include "inverter.h"
|
||||
#include "dma.h"
|
||||
|
||||
#include "serial.h"
|
||||
#include "serial_uart.h"
|
||||
|
@ -265,6 +266,7 @@ void uartStartTxDMA(uartPort_t *s)
|
|||
s->port.txBufferTail = 0;
|
||||
}
|
||||
s->txDMAEmpty = false;
|
||||
HAL_CLEANCACHE((uint8_t *)&s->port.txBuffer[fromwhere],size);
|
||||
HAL_UART_Transmit_DMA(&s->Handle, (uint8_t *)&s->port.txBuffer[fromwhere], size);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue