From f2c9b3ac067d1d20aa6842fc59c237d350382157 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 9 Jan 2023 13:18:09 +1100 Subject: [PATCH] hwdef: save flash to get 4.3.3 building on some low flash boards --- libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat | 6 ++++++ libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat | 6 ++++++ libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat | 4 ++++ libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat | 6 ++++++ 5 files changed, 26 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat index 3af7107845..09952f874e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/BeastF7/hwdef.dat @@ -140,3 +140,7 @@ define AC_OAPATHPLANNER_ENABLED 0 define PRECISION_LANDING 0 define AP_OPTICALFLOW_ENABLED 0 define AP_ICENGINE_ENABLED 0 +define AP_GPS_SIRF_ENABLED 0 +define AP_GPS_NOVA_ENABLED 0 +define AP_GPS_GSOF_ENABLED 0 +define AP_GPS_ERB_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat index 1334f0d269..0e64b354a5 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MambaF405-2022/hwdef.dat @@ -25,3 +25,9 @@ IMU Invensensev3 SPI:icm42688 ROTATION_ROLL_180_YAW_270 BARO SPL06 I2C:0:0x76 define AP_BARO_SPL06_ENABLED 1 +# disable some GPS drivers to save flash +define AP_GPS_SIRF_ENABLED 0 +define AP_GPS_SBP_ENABLED 0 +define AP_GPS_NOVA_ENABLED 0 +define AP_GPS_GSOF_ENABLED 0 +define AP_GPS_ERB_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat index 8b9db05c3f..07e70f7879 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-CAN/hwdef.dat @@ -177,4 +177,10 @@ define HAL_WITH_DSP FALSE # reduce max size of embedded params for apj_tool.py define AP_PARAM_MAX_EMBEDDED_PARAM 1024 +# disable some GPS drivers to save flash +define AP_GPS_SIRF_ENABLED 0 +define AP_GPS_SBP_ENABLED 0 +define AP_GPS_NOVA_ENABLED 0 +define AP_GPS_GSOF_ENABLED 0 +define AP_GPS_ERB_ENABLED 0 diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat index 09b44cee9d..146368651e 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405-Wing/hwdef.dat @@ -200,3 +200,7 @@ define AP_OPTICALFLOW_ENABLED 0 define AP_ICENGINE_ENABLED 0 define AP_GPS_SIRF_ENABLED 0 define AP_GPS_SBP_ENABLED 0 +define AP_GPS_NOVA_ENABLED 0 +define AP_GPS_GSOF_ENABLED 0 +define AP_GPS_ERB_ENABLED 0 + diff --git a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat index 3688446214..831e50acca 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat +++ b/libraries/AP_HAL_ChibiOS/hwdef/MatekF405/hwdef.dat @@ -173,3 +173,9 @@ define AC_OAPATHPLANNER_ENABLED 0 define PRECISION_LANDING 0 define AP_OPTICALFLOW_ENABLED 0 define AP_ICENGINE_ENABLED 0 + +# minimise GPS backends to save flash +define AP_GPS_NOVA_ENABLED 0 +define AP_GPS_GSOF_ENABLED 0 +define AP_GPS_ERB_ENABLED 0 +define AP_GPS_SIRF_ENABLED 0