mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
UART buffers for F4 should not be in CCM DATA RAM for DMA to work
This commit is contained in:
parent
031a21b9fc
commit
ff72647486
2 changed files with 67 additions and 12 deletions
|
@ -170,7 +170,7 @@ typedef struct uartHardware_s {
|
|||
uint8_t txPriority;
|
||||
uint8_t rxPriority;
|
||||
|
||||
#ifdef STM32H7
|
||||
#if defined(STM32H7) || defined(STM32F4)
|
||||
volatile uint8_t *txBuffer;
|
||||
volatile uint8_t *rxBuffer;
|
||||
uint16_t txBufferSize;
|
||||
|
@ -188,8 +188,9 @@ typedef struct uartDevice_s {
|
|||
const uartHardware_t *hardware;
|
||||
uartPinDef_t rx;
|
||||
uartPinDef_t tx;
|
||||
#ifdef STM32H7
|
||||
#if defined(STM32H7) || defined(STM32F4)
|
||||
// For H7, buffers with possible DMA access is placed in D2 SRAM.
|
||||
// For F4, buffers should NOT be in CCM DATA RAM (uartDevice is).
|
||||
volatile uint8_t *rxBuffer;
|
||||
volatile uint8_t *txBuffer;
|
||||
#else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue