From ac031d9b0d66ea62a4f3d4d7d7bf3586808f30f4 Mon Sep 17 00:00:00 2001 From: peabody124 Date: Fri, 28 Jan 2011 16:01:40 +0000 Subject: [PATCH] OP-256 RC 3 is using TIM5 but wasn't previously handling this ISR. Passing to the PWM ISR now. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2607 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/OpenPilot/System/pios_board.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/flight/OpenPilot/System/pios_board.c b/flight/OpenPilot/System/pios_board.c index ee805c089..d49a808da 100644 --- a/flight/OpenPilot/System/pios_board.c +++ b/flight/OpenPilot/System/pios_board.c @@ -791,8 +791,10 @@ const struct pios_pwm_channel pios_pwm_channels[] = { void TIM1_CC_IRQHandler(); void TIM3_IRQHandler(); +void TIM5_IRQHandler(); void TIM1_CC_IRQHandler() __attribute__ ((alias ("PIOS_TIM1_CC_irq_handler"))); void TIM3_IRQHandler() __attribute__ ((alias ("PIOS_TIM3_irq_handler"))); +void TIM5_IRQHandler() __attribute__ ((alias ("PIOS_TIM5_irq_handler"))); const struct pios_pwm_cfg pios_pwm_cfg = { .tim_base_init = { .TIM_Prescaler = (PIOS_MASTER_CLOCK / 1000000) - 1, @@ -831,6 +833,10 @@ void PIOS_TIM3_irq_handler() { PIOS_PWM_irq_handler(TIM3); } +void PIOS_TIM5_irq_handler() +{ + PIOS_PWM_irq_handler(TIM5); +} #endif /*