mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_HAL: disable CAN Protocol Drivers for AP_Periph
This commit is contained in:
parent
b27092c651
commit
c7d69e4d13
@ -216,8 +216,12 @@
|
||||
#endif
|
||||
|
||||
#ifndef HAL_MAX_CAN_PROTOCOL_DRIVERS
|
||||
#if defined(HAL_BUILD_AP_PERIPH)
|
||||
#define HAL_MAX_CAN_PROTOCOL_DRIVERS 0
|
||||
#else
|
||||
#define HAL_MAX_CAN_PROTOCOL_DRIVERS HAL_NUM_CAN_IFACES
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef HAL_ENABLE_LIBUAVCAN_DRIVERS
|
||||
#define HAL_ENABLE_LIBUAVCAN_DRIVERS (HAL_MAX_CAN_PROTOCOL_DRIVERS > 0)
|
||||
|
Loading…
Reference in New Issue
Block a user