From 954267fc22cb2eeecfc987e12278406c581ce6ef Mon Sep 17 00:00:00 2001 From: mirkix Date: Thu, 29 Dec 2016 15:37:03 +0100 Subject: [PATCH] AP_HAL_Linux: Add BeagleBone Blue to RCInput_AioPRU --- libraries/AP_HAL_Linux/RCInput_AioPRU.cpp | 3 ++- libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp | 6 +++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_Linux/RCInput_AioPRU.cpp b/libraries/AP_HAL_Linux/RCInput_AioPRU.cpp index 69f4e3221f..88bcfc2519 100644 --- a/libraries/AP_HAL_Linux/RCInput_AioPRU.cpp +++ b/libraries/AP_HAL_Linux/RCInput_AioPRU.cpp @@ -12,7 +12,8 @@ #include -#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI +#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI || \ + CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE #include #include diff --git a/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp b/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp index e77409481b..0c1253a46f 100644 --- a/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp +++ b/libraries/AP_HAL_Linux/RCOutput_AioPRU.cpp @@ -20,7 +20,11 @@ #include -#include "../../Tools/Linux_HAL_Essentials/pru/aiopru/RcAioPRU_bin.h" +#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BLUE +#include "../../Tools/Linux_HAL_Essentials/pru/aiopru/RcAioPRU_BBBLUE_bin.h" +#else +#include "../../Tools/Linux_HAL_Essentials/pru/aiopru/RcAioPRU_BBBMINI_bin.h" +#endif using namespace Linux;