[Horus] Trainer driver fix

This commit is contained in:
Bertrand Songis
2016-05-21 15:06:03 +02:00
parent d1e7b66f1a
commit 36df7900af
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ void init_trainer_ppm()
// TODO - testing
void stop_trainer_ppm()
{
configure_pins( TRAINER_GPIO_PIN_OUT, PIN_INPUT | PIN_PORTC ); // Pin as input
configure_pins(TRAINER_GPIO_PIN_OUT, PIN_INPUT | PIN_PORTC); // Pin as input
TRAINER_TIMER->DIER = 0; // Stop Interrupt
TRAINER_TIMER->CR1 &= ~TIM_CR1_CEN; // Stop counter
NVIC_DisableIRQ(TRAINER_TIMER_IRQn); // Stop Interrupt