From db798ace052cfd6720bdf5875fe632231c94abbc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 1 Jan 2021 09:26:47 +1100 Subject: [PATCH] AP_CANManager: added EFI_NWPMU --- libraries/AP_CANManager/AP_CANDriver.cpp | 2 +- libraries/AP_CANManager/AP_CANManager.cpp | 1 + libraries/AP_CANManager/AP_CANManager.h | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/AP_CANManager/AP_CANDriver.cpp b/libraries/AP_CANManager/AP_CANDriver.cpp index c417d915f0..ef5cb50f2f 100644 --- a/libraries/AP_CANManager/AP_CANDriver.cpp +++ b/libraries/AP_CANManager/AP_CANDriver.cpp @@ -33,7 +33,7 @@ const AP_Param::GroupInfo AP_CANManager::CANDriver_Params::var_info[] = { // @DisplayName: Enable use of specific protocol over virtual driver // @Description: Enabling this option starts selected protocol that will use this virtual driver // @Values{Copter,Plane,Sub}: 0:Disabled,1:UAVCAN,2:KDECAN,3:ToshibaCAN,4:PiccoloCAN,5:CANTester - // @Values: 0:Disabled,1:UAVCAN,3:ToshibaCAN,4:PiccoloCAN,5:CANTester + // @Values: 0:Disabled,1:UAVCAN,3:ToshibaCAN,4:PiccoloCAN,5:CANTester,6:EFI_NWPMU // @User: Advanced // @RebootRequired: True AP_GROUPINFO("PROTOCOL", 1, AP_CANManager::CANDriver_Params, _driver_type, AP_CANManager::Driver_Type_UAVCAN), diff --git a/libraries/AP_CANManager/AP_CANManager.cpp b/libraries/AP_CANManager/AP_CANManager.cpp index 6d9d8b728d..a0db66e61c 100644 --- a/libraries/AP_CANManager/AP_CANManager.cpp +++ b/libraries/AP_CANManager/AP_CANManager.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include "AP_CANTester.h" #include #if CONFIG_HAL_BOARD == HAL_BOARD_LINUX diff --git a/libraries/AP_CANManager/AP_CANManager.h b/libraries/AP_CANManager/AP_CANManager.h index a328d3f96e..580b0d598e 100644 --- a/libraries/AP_CANManager/AP_CANManager.h +++ b/libraries/AP_CANManager/AP_CANManager.h @@ -57,6 +57,7 @@ public: Driver_Type_ToshibaCAN = 3, Driver_Type_PiccoloCAN = 4, Driver_Type_CANTester = 5, + Driver_Type_EFI_NWPMU = 6, }; void init(void);