From 1f670b4ce210534e5ade9be47e23d6a9d83a4b91 Mon Sep 17 00:00:00 2001 From: Pat Hickey Date: Wed, 29 Aug 2012 14:20:15 -0700 Subject: [PATCH] AP_HAL_AVR: bugfix to RCOutput_APM1 driver CH5 and CH6 * copypasted the code from RCOutputAPM1 and forgot to fix the io pins to initialize properly --- libraries/AP_HAL_AVR/RCOutput_APM1.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_HAL_AVR/RCOutput_APM1.cpp b/libraries/AP_HAL_AVR/RCOutput_APM1.cpp index 3f523ef509..880dd67a9c 100644 --- a/libraries/AP_HAL_AVR/RCOutput_APM1.cpp +++ b/libraries/AP_HAL_AVR/RCOutput_APM1.cpp @@ -41,8 +41,8 @@ void APM1RCOutput::init(void* machtnichts) { //--------------- TIMER4: CH_6 and CH_5 ---------------------------- // NB TIMER4 is shared with PPM input from RCInput_APM1.cpp // The TIMER4 registers are assumed to be setup already. - hal.gpio->pinMode(2,GPIO_OUTPUT); // CH_5 (PE4/OC3B) - hal.gpio->pinMode(3,GPIO_OUTPUT); // CH_6 (PE5/OC3C) + hal.gpio->pinMode(7,GPIO_OUTPUT); // CH_5 (PH4/OC4B) + hal.gpio->pinMode(8,GPIO_OUTPUT); // CH_6 (PH5/OC4C) //--------------- TIMER5: CH_1, CH_2 and CH_9 -----------------------