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
This commit is contained in:
Pat Hickey 2012-08-29 14:20:15 -07:00 committed by Andrew Tridgell
parent ad64fd2924
commit 1f670b4ce2

View File

@ -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 -----------------------