From 3869c4c0e9f180a45f99648bc3a6d6b20d15e1ae Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Thu, 15 Jun 2023 18:25:10 +1000 Subject: [PATCH] AP_HAL_ChibiOS: add and use AP_SBUSOUTPUT_ENABLED .... which will allow periphs to instantiate this if they really feel like it, and for it to be removed on smaller boards on the custom build server (and potentially on lower-specced boards. --- libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py index 7563a8ff69..e2a13930eb 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/chibios_hwdef.py @@ -3079,6 +3079,10 @@ INCLUDE common.ld #define AP_ROBOTISSERVO_ENABLED 0 #endif +#ifndef AP_SBUSOUTPUT_ENABLED +#define AP_SBUSOUTPUT_ENABLED 0 +#endif + // by default an AP_Periph defines as many servo output channels as // there are PWM outputs: #ifndef NUM_SERVO_CHANNELS