From 5d421e8ee3f24d8408a06ca839fa2e46898205a5 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 14 Feb 2024 19:26:12 +1100 Subject: [PATCH] AP_HAL_ChibiOS: allow AP_Periph to use mavlink library --- .../hwdef/scripts/defaults_periph.h | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h index c2f75d2306..136987f000 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/defaults_periph.h @@ -325,7 +325,7 @@ #define AP_AHRS_ENABLED defined(HAL_PERIPH_ENABLE_AHRS) #define AP_COMPASS_ENABLED defined(HAL_PERIPH_ENABLE_MAG) #define AP_BARO_ENABLED defined(HAL_PERIPH_ENABLE_BARO) -#define AP_GPS_ENABLED 1 // FIXME: should be defined(HAL_PERIPH_ENABLE_GPS) +#define AP_GPS_ENABLED defined(HAL_PERIPH_ENABLE_GPS) #define AP_RPM_ENABLED defined(HAL_PERIPH_ENABLE_RPM) #define AP_RCPROTOCOL_ENABLED defined(HAL_PERIPH_ENABLE_RCIN) #define AP_RTC_ENABLED defined(HAL_PERIPH_ENABLE_RTC) @@ -400,3 +400,43 @@ #ifndef AP_FILTER_ENABLED #define AP_FILTER_ENABLED 0 #endif + +#ifndef AP_ADVANCEDFAILSAFE_ENABLED +#define AP_ADVANCEDFAILSAFE_ENABLED 0 +#endif + +#ifndef AP_ARMING_ENABLED +#define AP_ARMING_ENABLED 0 +#endif + +#ifndef AP_LTM_TELEM_ENABLED +#define AP_LTM_TELEM_ENABLED 0 +#endif + +#ifndef AP_GRIPPER_ENABLED +#define AP_GRIPPER_ENABLED 0 +#endif + +#ifndef HAL_SPRAYER_ENABLED +#define HAL_SPRAYER_ENABLED 0 +#endif + +#ifndef AP_VEHICLE_ENABLED +#define AP_VEHICLE_ENABLED 0 +#endif + +#ifndef OSD_ENABLED +#define OSD_ENABLED 0 +#endif + +#ifndef OSD_PARAM_ENABLED +#define OSD_PARAM_ENABLED 0 +#endif + +#ifndef AP_SCHEDULER_ENABLED +#define AP_SCHEDULER_ENABLED 0 +#endif + +#ifndef AP_RC_CHANNEL_ENABLED +#define AP_RC_CHANNEL_ENABLED 0 +#endif