AP_HAL_ChibiOS: add and use option to compile SLCAN support out of code

This commit is contained in:
Peter Barker 2023-03-11 11:46:34 +11:00 committed by Peter Barker
parent c1c8158687
commit 144c3ef42c
4 changed files with 10 additions and 2 deletions

View File

@ -16,7 +16,7 @@ env AP_PERIPH_HEAVY 1
define HAL_PERIPH_ENABLE_SLCAN
define AP_CAN_SLCAN_ENABLED 1
define HAL_PERIPH_ENABLE_BATTERY
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG

View File

@ -15,7 +15,7 @@ env AP_PERIPH 1
define HAL_PERIPH_ENABLE_SLCAN
define AP_CAN_SLCAN_ENABLED 1
define HAL_PERIPH_ENABLE_BATTERY
define HAL_PERIPH_ENABLE_GPS
define HAL_PERIPH_ENABLE_MAG

View File

@ -57,3 +57,6 @@ define AP_WINCH_ENABLED 0
define AP_CAMERA_BACKEND_DEFAULT_ENABLED 0
define AP_CAMERA_RELAY_ENABLED 1
define AP_CAMERA_SERVO_ENABLED 1
# no SLCAN on these boards (use can-over-mavlink if required)
define AP_CAN_SLCAN_ENABLED 0

View File

@ -3007,6 +3007,11 @@ def add_apperiph_defaults(f):
// no CAN manager in AP_Periph:
#define HAL_CANMANAGER_ENABLED 0
// SLCAN is off by default:
#ifndef AP_CAN_SLCAN_ENABLED
#define AP_CAN_SLCAN_ENABLED 0
#endif
// Periphs don't use the FFT library:
#ifndef HAL_GYROFFT_ENABLED
#define HAL_GYROFFT_ENABLED 0