Merge pull request #5082 from martinbudden/bfa_target_undefs
Removed unnecessary target #undefs
This commit is contained in:
commit
67d33b0a52
|
@ -20,10 +20,6 @@
|
||||||
|
|
||||||
#define TARGET_BOARD_IDENTIFIER "BFF3"
|
#define TARGET_BOARD_IDENTIFIER "BFF3"
|
||||||
|
|
||||||
// Removing some features to make the firmware fit the flash space
|
|
||||||
#undef USE_TELEMETRY_JETIEXBUS
|
|
||||||
#undef USE_TELEMETRY_LTM
|
|
||||||
|
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
||||||
|
|
||||||
|
@ -54,8 +50,6 @@
|
||||||
#define REMAP_TIM16_DMA
|
#define REMAP_TIM16_DMA
|
||||||
#define REMAP_TIM17_DMA
|
#define REMAP_TIM17_DMA
|
||||||
|
|
||||||
#undef USE_TELEMETRY_IBUS
|
|
||||||
|
|
||||||
#define USE_VCP
|
#define USE_VCP
|
||||||
#define USE_UART1
|
#define USE_UART1
|
||||||
#define USE_UART2
|
#define USE_UART2
|
||||||
|
|
|
@ -144,8 +144,6 @@
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#undef USE_UNCOMMON_MIXERS
|
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
#define TARGET_IO_PORTB 0xffff
|
#define TARGET_IO_PORTB 0xffff
|
||||||
#define TARGET_IO_PORTC 0xffff
|
#define TARGET_IO_PORTC 0xffff
|
||||||
|
|
|
@ -18,10 +18,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
// Removed to make the firmware fit into flash:
|
// Removed to make the firmware fit into flash:
|
||||||
#undef USE_TELEMETRY_IBUS
|
|
||||||
#undef USE_TELEMETRY_JETIEXBUS
|
|
||||||
#undef USE_SERIALRX_JETIEXBUS
|
|
||||||
#undef USE_TELEMETRY_MAVLINK
|
|
||||||
#undef USE_TELEMETRY_LTM
|
#undef USE_TELEMETRY_LTM
|
||||||
#undef USE_RTC_TIME
|
#undef USE_RTC_TIME
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
|
|
||||||
#define TARGET_BOARD_IDENTIFIER "REF3"
|
#define TARGET_BOARD_IDENTIFIER "REF3"
|
||||||
|
|
||||||
#undef USE_OSD
|
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
||||||
|
|
||||||
#define LED0_PIN PB4
|
#define LED0_PIN PB4
|
||||||
|
|
|
@ -94,9 +94,6 @@
|
||||||
#define RANGEFINDER_HCSR04_TRIGGER_PIN PB0
|
#define RANGEFINDER_HCSR04_TRIGGER_PIN PB0
|
||||||
#define RANGEFINDER_HCSR04_ECHO_PIN PB1
|
#define RANGEFINDER_HCSR04_ECHO_PIN PB1
|
||||||
|
|
||||||
#elif defined(RMDO)
|
|
||||||
#undef USE_GPS
|
|
||||||
|
|
||||||
#elif defined(ZCOREF3)
|
#elif defined(ZCOREF3)
|
||||||
#define USE_MAG_DATA_READY_SIGNAL
|
#define USE_MAG_DATA_READY_SIGNAL
|
||||||
#define ENSURE_MAG_DATA_READY_IS_HIGH
|
#define ENSURE_MAG_DATA_READY_IS_HIGH
|
||||||
|
|
|
@ -38,11 +38,6 @@
|
||||||
|
|
||||||
#endif // SPRACINGF3MQ
|
#endif // SPRACINGF3MQ
|
||||||
|
|
||||||
// Space reduction measures to make the firmware fit into flash:
|
|
||||||
#undef USE_TELEMETRY_JETIEXBUS
|
|
||||||
#undef USE_SERIALRX_JETIEXBUS
|
|
||||||
#undef USE_TELEMETRY_MAVLINK
|
|
||||||
|
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,6 @@
|
||||||
#define SPRACINGF3MINI_REV 2
|
#define SPRACINGF3MINI_REV 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Space reduction measures to make the firmware fit into flash:
|
|
||||||
#undef USE_RCDEVICE
|
|
||||||
|
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
||||||
|
|
||||||
#define LED0_PIN PB3
|
#define LED0_PIN PB3
|
||||||
|
|
|
@ -95,10 +95,6 @@
|
||||||
#define USE_VTX_RTC6705
|
#define USE_VTX_RTC6705
|
||||||
#define VTX_RTC6705_OPTIONAL // VTX/OSD board is OPTIONAL
|
#define VTX_RTC6705_OPTIONAL // VTX/OSD board is OPTIONAL
|
||||||
|
|
||||||
// Disabled due to flash size
|
|
||||||
#undef USE_VTX_SMARTAUDIO
|
|
||||||
#undef USE_VTX_TRAMP
|
|
||||||
|
|
||||||
#define RTC6705_CS_PIN PF4
|
#define RTC6705_CS_PIN PF4
|
||||||
#define RTC6705_SPI_INSTANCE SPI3
|
#define RTC6705_SPI_INSTANCE SPI3
|
||||||
#define RTC6705_POWER_PIN PC3
|
#define RTC6705_POWER_PIN PC3
|
||||||
|
|
|
@ -209,10 +209,6 @@
|
||||||
// FIXME While it's possible to use the button on the OSD/VTX board for binding enabling it here will break binding unless you have the OSD/VTX connected.
|
// FIXME While it's possible to use the button on the OSD/VTX board for binding enabling it here will break binding unless you have the OSD/VTX connected.
|
||||||
//#define BINDPLUG_PIN BUTTON_A_PIN
|
//#define BINDPLUG_PIN BUTTON_A_PIN
|
||||||
|
|
||||||
// Temporarily disable SMARTAUDIO and TRAMP VTX support due to flash size issues.
|
|
||||||
#undef USE_VTX_SMARTAUDIO
|
|
||||||
#undef USE_VTX_TRAMP
|
|
||||||
|
|
||||||
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
#define USE_SERIAL_4WAY_BLHELI_INTERFACE
|
||||||
|
|
||||||
#define TARGET_IO_PORTA 0xffff
|
#define TARGET_IO_PORTA 0xffff
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_NONE
|
||||||
|
|
||||||
#undef USE_OSD // ROM SAVING
|
#undef USE_OSD // ROM SAVING
|
||||||
#undef USE_TELEMETRY_JETIEXBUS // ROM SAVING
|
|
||||||
|
|
||||||
#define CURRENT_TARGET_CPU_VOLTAGE 3.0
|
#define CURRENT_TARGET_CPU_VOLTAGE 3.0
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue