From a413fef77f63ad0750df865171781addfe78a51d Mon Sep 17 00:00:00 2001 From: Siddharth Purohit Date: Fri, 2 Feb 2018 00:44:58 +0530 Subject: [PATCH] AP_BoardConfig: add support for UAVCAN setup on ChibiOS boards --- libraries/AP_BoardConfig/AP_BoardConfig_CAN.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_BoardConfig/AP_BoardConfig_CAN.cpp b/libraries/AP_BoardConfig/AP_BoardConfig_CAN.cpp index 7e8deae0ef..1065457f32 100644 --- a/libraries/AP_BoardConfig/AP_BoardConfig_CAN.cpp +++ b/libraries/AP_BoardConfig/AP_BoardConfig_CAN.cpp @@ -31,6 +31,8 @@ #include #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX #include +#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS +#include #endif #include @@ -107,6 +109,8 @@ void AP_BoardConfig_CAN::setup_canbus(void) const_cast (hal).can_mgr[drv_num - 1] = new PX4::PX4CANManager; #elif CONFIG_HAL_BOARD == HAL_BOARD_LINUX const_cast (hal).can_mgr[drv_num - 1] = new Linux::CANManager; + #elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS + const_cast (hal).can_mgr[drv_num - 1] = new ChibiOS::CANManager; #endif }