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.
This commit is contained in:
Peter Barker 2023-06-15 18:25:10 +10:00 committed by Andrew Tridgell
parent 5daa38ffba
commit 3869c4c0e9
1 changed files with 4 additions and 0 deletions

View File

@ -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