Skip to content

Commit

Permalink
Revert "Rewritten F7 dshot to LL (draft)" (betaflight#5430)
Browse files Browse the repository at this point in the history
This reverts commit fa3c7e0.
  • Loading branch information
hydra authored and DieHertz committed Mar 9, 2018
1 parent f00575e commit aa42a69
Show file tree
Hide file tree
Showing 4 changed files with 158 additions and 162 deletions.
7 changes: 7 additions & 0 deletions src/main/drivers/pwm_output.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,14 @@ typedef enum {
typedef struct {
TIM_TypeDef *timer;
#if defined(USE_DSHOT) && defined(USE_DSHOT_DMAR)
#if !defined(USE_HAL_DRIVER)
#ifdef STM32F3
DMA_Channel_TypeDef *dmaBurstRef;
#else
DMA_Stream_TypeDef *dmaBurstRef;
#endif
uint16_t dmaBurstLength;
#endif
uint32_t dmaBurstBuffer[DSHOT_DMA_BUFFER_SIZE * 4];
#endif
uint16_t timerDmaSources;
Expand All @@ -136,6 +138,11 @@ typedef struct {
#else
uint8_t dmaBuffer[DSHOT_DMA_BUFFER_SIZE];
#endif
#if defined(USE_HAL_DRIVER)
TIM_HandleTypeDef TimHandle;
DMA_HandleTypeDef hdma_tim;
uint16_t timerDmaIndex;
#endif
} motorDmaOutput_t;

motorDmaOutput_t *getMotorDmaOutput(uint8_t index);
Expand Down
Loading

0 comments on commit aa42a69

Please sign in to comment.