mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-24 16:55:36 +03:00
Merge pull request #4859 from mikeller/make_dshot_dmar_configurable_per_target
Made Dshot DMAR configurable per target, added define to change defaults for release builds.
This commit is contained in:
commit
ff0628193f
6 changed files with 22 additions and 2 deletions
|
@ -26,6 +26,9 @@
|
|||
|
||||
#define FC_VERSION_STRING STR(FC_VERSION_MAJOR) "." STR(FC_VERSION_MINOR) "." STR(FC_VERSION_PATCH_LEVEL)
|
||||
|
||||
// Uncomment this for release / maintenance branches, or use `OPTIONS=RELEASE_BUILD`
|
||||
//#define RELEASE_BUILD
|
||||
|
||||
extern const char* const targetName;
|
||||
|
||||
#define GIT_SHORT_REVISION_LENGTH 7 // lower case hexadecimal digits.
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#define BEEPER PB3
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#define USE_DSHOT_DMAR
|
||||
|
||||
// ICM20689 interrupt
|
||||
#define USE_EXTI
|
||||
#define MPU_INT_EXTI PA8
|
||||
|
|
|
@ -25,6 +25,8 @@
|
|||
#define BEEPER PC13
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#define USE_DSHOT_DMAR
|
||||
|
||||
#define INVERTER_PIN_UART2 PC14
|
||||
|
||||
#define USE_ACC
|
||||
|
|
|
@ -53,6 +53,10 @@
|
|||
#define BEEPER PB4
|
||||
#define BEEPER_INVERTED
|
||||
|
||||
#if defined(OMNIBUSF4SD)
|
||||
#define USE_DSHOT_DMAR
|
||||
#endif
|
||||
|
||||
#ifdef OMNIBUSF4SD
|
||||
// These inverter control pins collide with timer channels on CH5 and CH6 pads.
|
||||
// Users of these timers/pads must un-map the inverter assignment explicitly.
|
||||
|
|
|
@ -19,6 +19,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "build/version.h"
|
||||
|
||||
// Targets with built-in vtx do not need external vtx
|
||||
#if defined(VTX_RTC6705) && !defined(VTX_RTC6705_OPTIONAL)
|
||||
#undef VTX_SMARTAUDIO
|
||||
|
@ -79,3 +81,12 @@
|
|||
#define USE_RX_FRSKY_SPI
|
||||
#endif
|
||||
|
||||
#if !defined(STM32F1) && defined(USE_DSHOT)
|
||||
#if !defined(USE_DSHOT_DMA) && !defined(USE_DSHOT_DMAR)
|
||||
#if !defined(RELEASE_BUILD)
|
||||
#define USE_DSHOT_DMAR
|
||||
#endif // !RELEASE_BUILD
|
||||
#endif // !USE_DSHOT_DMA && !USE_DSHOT_DMAR
|
||||
#endif // !STM32F1 && !STM32F3
|
||||
#undef USE_DSHOT_DMA
|
||||
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#ifdef STM32F4
|
||||
#define USE_DSHOT
|
||||
#define USE_DSHOT_DMAR
|
||||
#define USE_ESC_SENSOR
|
||||
#define I2C3_OVERCLOCK true
|
||||
#define USE_TELEMETRY_IBUS
|
||||
|
@ -59,7 +58,6 @@
|
|||
#endif
|
||||
#ifdef STM32F7
|
||||
#define USE_DSHOT
|
||||
#define USE_DSHOT_DMAR
|
||||
#define USE_ESC_SENSOR
|
||||
#define I2C3_OVERCLOCK true
|
||||
#define I2C4_OVERCLOCK true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue