Browse Source

AP_HAL: disable CAN Protocol Drivers for AP_Periph

zr-v5.1
Siddharth Purohit 5 years ago committed by Peter Barker
parent
commit
c7d69e4d13
  1. 6
      libraries/AP_HAL/AP_HAL_Boards.h

6
libraries/AP_HAL/AP_HAL_Boards.h

@ -216,7 +216,11 @@ @@ -216,7 +216,11 @@
#endif
#ifndef HAL_MAX_CAN_PROTOCOL_DRIVERS
#define HAL_MAX_CAN_PROTOCOL_DRIVERS HAL_NUM_CAN_IFACES
#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

Loading…
Cancel
Save