diff --git a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat index f6842833c8d38..73a85c5dd3456 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/SpeedyBeeF405WING/hwdef.dat @@ -169,50 +169,19 @@ PC13 PINIO1 OUTPUT GPIO(81) LOW define STM32_PWM_USE_ADVANCED TRUE -define HAL_WITH_DSP FALSE - -# disable parachute and sprayer to save flash -define HAL_PARACHUTE_ENABLED 0 -define HAL_SPRAYER_ENABLED 0 -define AP_GRIPPER_ENABLED 0 -define HAL_GENERATOR_ENABLED 0 -define AP_ICENGINE_ENABLED 0 -#define LANDING_GEAR_ENABLED 0 -define WINCH_ENABLED 0 -define HAL_ADSB_ENABLED 0 - -define AC_OAPATHPLANNER_ENABLED 0 -define PRECISION_LANDING 0 -#define HAL_BARO_WIND_COMP_ENABLED 0 -define AP_OPTICALFLOW_ENABLED 0 - - -# Disable un-needed hardware drivers -define HAL_WITH_ESC_TELEM 0 -define AP_FETTEC_ONEWIRE_ENABLED 0 - -define AP_VOLZ_ENABLED 0 -define AP_ROBOTISSERVO_ENABLE 0 -define HAL_PICCOLO_CAN_ENABLE 0 -define HAL_TORQEEDO_ENABLED 0 -define HAL_RUNCAM_ENABLED 0 -define HAL_HOTT_TELEM_ENABLED 0 -define HAL_NMEA_OUTPUT_ENABLED 0 -define HAL_BUTTON_ENABLED 0 -define AP_NOTIFY_OREOLED_ENABLED 0 - -#only support MS4525 ANALOG ASP5033 driver -define AP_AIRSPEED_BACKEND_DEFAULT_ENABLED 0 -define AP_AIRSPEED_MS4525_ENABLED 1 -define AP_AIRSPEED_ANALOG_ENABLED 1 -define AP_AIRSPEED_ASP5033_ENABLED 1 - -#only support UBLOX and NMEA GPS driver -define AP_GPS_BACKEND_DEFAULT_ENABLED 0 -define AP_GPS_UBLOX_ENABLED 1 -define AP_GPS_NMEA_ENABLED 1 -define HAL_MSP_GPS_ENABLED 1 - -define AP_TRAMP_ENABLED 1 +# minimal drivers to reduce flash usage +include ../include/minimize_fpv_osd.inc + +undef AP_CAMERA_MOUNT_ENABLED +undef AP_LANDINGGEAR_ENABLED +undef HAL_MOUNT_ENABLED +undef HAL_MOUNT_SERVO_ENABLED +undef QAUTOTUNE_ENABLED + +define AP_CAMERA_MOUNT_ENABLED 1 +define AP_LANDINGGEAR_ENABLED 1 +define HAL_MOUNT_ENABLED 1 +define HAL_MOUNT_SERVO_ENABLED 1 +define QAUTOTUNE_ENABLED 1 define DEFAULT_NTF_LED_TYPES 257