mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 11:29:58 +03:00
Fixed build if none of USE_DSHOT, USE_LED_STRIP, USE_TRANSPONDE… (#8506)
Fixed build if none of USE_DSHOT, USE_LED_STRIP, USE_TRANSPONDER are defined.
This commit is contained in:
parent
1cdb21c8f3
commit
f3a95efa38
3 changed files with 8 additions and 2 deletions
|
@ -107,7 +107,7 @@ typedef struct timerHardware_s {
|
|||
#if defined(STM32F3) || defined(STM32F4) || defined(STM32F7)
|
||||
uint8_t alternateFunction;
|
||||
#endif
|
||||
#if defined(USE_DSHOT) || defined(USE_LED_STRIP) || defined(USE_TRANSPONDER)
|
||||
#if defined(USE_TIMER_DMA)
|
||||
#if defined(USE_DMA_SPEC)
|
||||
#if defined(STM32F4) || defined(STM32F7)
|
||||
DMA_Stream_TypeDef *dmaRefConfigured;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
#include "common/utils.h"
|
||||
|
||||
// allow conditional definition of DMA related members
|
||||
#if defined(USE_DSHOT) || defined(USE_LED_STRIP) || defined(USE_TRANSPONDER)
|
||||
#if defined(USE_TIMER_DMA)
|
||||
# define DEF_TIM_DMA_COND(...) __VA_ARGS__
|
||||
#else
|
||||
# define DEF_TIM_DMA_COND(...)
|
||||
|
|
|
@ -289,6 +289,12 @@
|
|||
#undef BEEPER_PWM_HZ
|
||||
#endif
|
||||
|
||||
#if defined(USE_DSHOT) || defined(USE_LED_STRIP) || defined(USE_TRANSPONDER)
|
||||
#define USE_TIMER_DMA
|
||||
#else
|
||||
#undef USE_DMA_SPEC
|
||||
#endif
|
||||
|
||||
#if !defined(USE_DMA_SPEC)
|
||||
#undef USE_TIMER_MGMT
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue