Merge pull request #4893 from martinbudden/bfa_use_defines2
Removed unnecessary USE_ #defines from target.h files
This commit is contained in:
commit
91bca2825a
|
@ -112,9 +112,6 @@
|
|||
#define VBAT_ADC_PIN PA4
|
||||
#define VBAT_SCALE_DEFAULT 20
|
||||
|
||||
// LED strip configuration.
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define BINDPLUG_PIN PB12
|
||||
|
||||
#define DEFAULT_FEATURES FEATURE_MOTOR_STOP
|
||||
|
|
|
@ -153,9 +153,6 @@
|
|||
#define CURRENT_METER_OFFSET_DEFAULT 2500 // ACS712/714-30A - 0A = 2.5V
|
||||
#define CURRENT_METER_SCALE_DEFAULT -667 // ACS712/714-30A - 66.666 mV/A inverted mode
|
||||
|
||||
// LED strip configuration.
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define BINDPLUG_PIN PB2
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
|
|
@ -169,9 +169,6 @@
|
|||
#define CURRENT_METER_OFFSET_DEFAULT 2500 // ACS712/714-30A - 0A = 2.5V
|
||||
#define CURRENT_METER_SCALE_DEFAULT -667 // ACS712/714-30A - 66.666 mV/A inverted mode
|
||||
|
||||
// LED strip configuration.
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define BINDPLUG_PIN PB2
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
|
|
@ -55,8 +55,6 @@
|
|||
#define LED0_PIN PC12 // conflicts UART5
|
||||
#define LED1_PIN PD2 // conflicts UART5
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
/* Lost Quad Mode and Alerts - RCX03-787 Low Voltage Active Buzzer
|
||||
*/
|
||||
#define BEEPER PA2
|
||||
|
|
|
@ -141,8 +141,6 @@
|
|||
|
||||
#define RSSI_ADC_PIN PC2
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define USE_TRANSPONDER
|
||||
|
||||
#define DEFAULT_FEATURES ( FEATURE_TELEMETRY | FEATURE_OSD | FEATURE_AIRMODE )
|
||||
|
|
|
@ -124,8 +124,6 @@
|
|||
#define CURRENT_METER_ADC_PIN PC1
|
||||
#define VBAT_ADC_PIN PC2
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
#define SERIALRX_UART SERIAL_PORT_USART6
|
||||
|
|
|
@ -141,8 +141,6 @@
|
|||
#define RSSI_ADC_PIN PC3
|
||||
#define CURRENT_METER_SCALE_DEFAULT 250 // 3.3/120A = 25mv/A
|
||||
|
||||
// LED strip configuration.
|
||||
#define USE_LED_STRIP
|
||||
#define BINDPLUG_PIN PB2
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||
|
|
|
@ -95,16 +95,10 @@
|
|||
#define VBAT_SCALE_DEFAULT 40
|
||||
|
||||
|
||||
#undef USE_GPS
|
||||
#undef USE_MAG
|
||||
#undef USE_RANGEFINDER
|
||||
#undef USE_RANGEFINDER_HCSR04
|
||||
#undef USE_SERVOS
|
||||
#undef BEEPER
|
||||
|
||||
|
||||
#define USE_BLACKBOX
|
||||
#define USE_LED_STRIP
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
#define BRUSHED_MOTORS
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
/*--------------LED----------------*/
|
||||
#define LED0_PIN PB5
|
||||
#define LED1_PIN PB6
|
||||
#define USE_LED_STRIP
|
||||
/*---------------------------------*/
|
||||
|
||||
/*------------BEEPER---------------*/
|
||||
|
@ -119,8 +118,6 @@
|
|||
|
||||
#define SERIAL_PORT_COUNT 5
|
||||
//SPECKTRUM BIND
|
||||
#define USE_CMS
|
||||
#define USE_MSP_DISPLAYPORT
|
||||
/*---------------------------------*/
|
||||
|
||||
/*-------------SPIs----------------*/
|
||||
|
|
|
@ -22,7 +22,6 @@
|
|||
/*--------------LED----------------*/
|
||||
#define LED0_PIN PA15
|
||||
#define LED1_PIN PB6
|
||||
#define USE_LED_STRIP
|
||||
/*---------------------------------*/
|
||||
|
||||
/*------------BEEPER---------------*/
|
||||
|
@ -100,8 +99,6 @@
|
|||
|
||||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
#define USE_CMS
|
||||
#define USE_MSP_DISPLAYPORT
|
||||
/*---------------------------------*/
|
||||
|
||||
/*-------------SPIs----------------*/
|
||||
|
|
|
@ -168,8 +168,6 @@
|
|||
#define VBAT_ADC_PIN PC3
|
||||
#define RSSI_ADC_PIN PC5
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
||||
#define DEFAULT_FEATURES (FEATURE_OSD)
|
||||
|
|
|
@ -89,8 +89,6 @@
|
|||
|
||||
#define SERIAL_PORT_COUNT 6
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
#define SERIALRX_UART SERIAL_PORT_USART2
|
||||
|
|
|
@ -161,8 +161,6 @@
|
|||
#define I2C1_SDA PB7
|
||||
*/
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define USE_ADC
|
||||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define VBAT_ADC_PIN PC1
|
||||
|
@ -188,6 +186,3 @@
|
|||
#define USABLE_TIMER_CHANNEL_COUNT 12
|
||||
|
||||
#define USED_TIMERS ( TIM_N(2) | TIM_N(3) | TIM_N(5) | TIM_N(8) | TIM_N(9) )
|
||||
|
||||
#define USE_CMS
|
||||
#define USE_MSP_DISPLAYPORT
|
||||
|
|
|
@ -149,8 +149,6 @@
|
|||
#define RX_CHANNELS_TAER
|
||||
#define DEFAULT_FEATURES (FEATURE_OSD)
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define TARGET_IO_PORTA 0xffff
|
||||
|
|
|
@ -75,8 +75,6 @@
|
|||
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define CAMERA_CONTROL_PIN PA15
|
||||
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||
|
|
|
@ -171,8 +171,6 @@
|
|||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define CURRENT_METER_SCALE_DEFAULT 179
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define ESCSERIAL_TIMER_TX_PIN PA3
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
|
|
@ -153,8 +153,6 @@
|
|||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
#define CURRENT_METER_SCALE_DEFAULT 179
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define USE_ESCSERIAL
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
|
|
|
@ -135,7 +135,6 @@
|
|||
// Reserved pins, not connected
|
||||
//#define RSSI_ADC_GPIO_PIN PC2
|
||||
|
||||
#define USE_LED_STRIP
|
||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
|
|
@ -188,8 +188,6 @@
|
|||
#define VBAT_ADC_PIN PC3
|
||||
#define RSSI_ADC_PIN PC5
|
||||
|
||||
#define USE_LED_STRIP
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
||||
#define DEFAULT_FEATURES (FEATURE_OSD)
|
||||
|
|
|
@ -161,7 +161,6 @@
|
|||
#define USE_OSD_OVER_MSP_DISPLAYPORT
|
||||
#define USE_MSP_CURRENT_METER
|
||||
|
||||
#define USE_LED_STRIP
|
||||
#define USE_TRANSPONDER
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
|
|
@ -188,7 +188,6 @@
|
|||
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
|
||||
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
|
||||
|
||||
#define USE_LED_STRIP
|
||||
#define USE_TRANSPONDER
|
||||
|
||||
#define ENABLE_BLACKBOX_LOGGING_ON_SDCARD_BY_DEFAULT
|
||||
|
|
|
@ -133,8 +133,6 @@
|
|||
#define MAX7456_SPI_INSTANCE SPI2
|
||||
#define MAX7456_SPI_CS_PIN SPI2_NSS_PIN
|
||||
|
||||
//#define USE_CMS
|
||||
|
||||
//#define USE_SDCARD
|
||||
//
|
||||
//#define SDCARD_SPI_INSTANCE SPI2
|
||||
|
|
|
@ -109,9 +109,6 @@
|
|||
#define CURRENT_METER_ADC_PIN PC2
|
||||
#define CURRENT_METER_SCALE_DEFAULT 250 // 3.3/120A = 25mv/A
|
||||
|
||||
// LED strip configuration.
|
||||
#define USE_LED_STRIP
|
||||
|
||||
// Default configuration
|
||||
#define DEFAULT_RX_FEATURE FEATURE_RX_SERIAL
|
||||
#define SERIALRX_PROVIDER SERIALRX_SBUS
|
||||
|
|
Loading…
Reference in New Issue