1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 06:45:16 +03:00

F3 and F7 updates to remove DSHOT interrupt.

This commit is contained in:
blckmn 2017-01-09 22:43:49 +11:00
parent b7940f19e2
commit ccd07cf03e
6 changed files with 23 additions and 44 deletions

View file

@ -20,6 +20,7 @@
#include "io/motors.h"
#include "io/servos.h"
#include "drivers/timer.h"
#include "drivers/dma.h"
typedef enum {
PWM_TYPE_STANDARD = 0,
@ -86,7 +87,11 @@ typedef struct {
#else
uint8_t dmaBuffer[MOTOR_DMA_BUFFER_SIZE];
#endif
#ifdef STM32F3
dmaChannelDescriptor_t* dmaDescriptor;
#else
uint32_t dmaFlag;
#endif
#if defined(STM32F7)
TIM_HandleTypeDef TimHandle;
DMA_HandleTypeDef hdma_tim;