1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

Enable only DMA for channels that are used.

This commit is contained in:
mikeller 2017-08-24 04:34:10 +12:00 committed by Michael Keller
parent a48956e8af
commit 05a8141139
4 changed files with 6 additions and 4 deletions

View file

@ -107,6 +107,7 @@ typedef struct {
const timerHardware_t *timerHardware;
uint16_t value;
uint16_t timerDmaSource;
motorDmaTimer_t *timer;
volatile bool requestTelemetry;
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7)
uint32_t dmaBuffer[DSHOT_DMA_BUFFER_SIZE];