AP_HAL_ChibiOS: add and use option to compile SLCAN support out of code
This commit is contained in:
parent
c1c8158687
commit
144c3ef42c
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user