From a803cfd1e881b0509e42ecfaece45f89437590bf Mon Sep 17 00:00:00 2001 From: Lucas De Marchi Date: Thu, 7 Jan 2016 10:24:46 -0200 Subject: [PATCH] AP_HAL_Linux: RCInput: use GPIO5 for PPMSUM in bhat --- libraries/AP_HAL_Linux/RCInput_RPI.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_HAL_Linux/RCInput_RPI.cpp b/libraries/AP_HAL_Linux/RCInput_RPI.cpp index 5527d59721..74ddeac4cd 100644 --- a/libraries/AP_HAL_Linux/RCInput_RPI.cpp +++ b/libraries/AP_HAL_Linux/RCInput_RPI.cpp @@ -31,7 +31,11 @@ #define RCIN_RPI_SAMPLE_FREQ 500 #define RCIN_RPI_DMA_CHANNEL 0 #define RCIN_RPI_MAX_COUNTER 1300 +#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BH +#define PPM_INPUT_RPI RPI_GPIO_5 +#else #define PPM_INPUT_RPI RPI_GPIO_4 +#endif #define RCIN_RPI_MAX_SIZE_LINE 50 //Memory Addresses