mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 08:45:36 +03:00
F4 Dshot-DMAR initial working version
This commit is contained in:
parent
5594a5c5b9
commit
759e03c47e
8 changed files with 220 additions and 52 deletions
|
@ -104,7 +104,7 @@ typedef struct timerHardware_s {
|
|||
DMA_Channel_TypeDef *dmaRef;
|
||||
#endif
|
||||
uint8_t dmaIrqHandler;
|
||||
#if defined(STM32F7)
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
// TIMUP
|
||||
DMA_Stream_TypeDef *dmaTimUPRef;
|
||||
uint32_t dmaTimUPChannel;
|
||||
|
@ -212,3 +212,4 @@ uint16_t timerGetPrescalerByDesiredMhz(TIM_TypeDef *tim, uint16_t mhz);
|
|||
uint16_t timerGetPeriodByPrescaler(TIM_TypeDef *tim, uint16_t prescaler, uint32_t hz);
|
||||
|
||||
int8_t timerGetTIMNumber(const TIM_TypeDef *tim);
|
||||
uint8_t timerLookupChannelIndex(const uint16_t channel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue