diff options
author | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:09:36 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-04-02 15:09:36 +0100 |
commit | a12be917a4644305e7813b3f4b11880aba3632ca (patch) | |
tree | d1c5cacae61e38673d034bbdc55b0a534c9fc62a /stmhal/stm32f4xx_it.c | |
parent | 69dee59ce44685d34662870fff439d7249cace36 (diff) |
stmhal: Add timer module; move servo PWM from TIM2 to TIM5.
As per issue #257, servo is better on TIM5 because TIM2 is connected to
more GPIO.
Diffstat (limited to 'stmhal/stm32f4xx_it.c')
-rw-r--r-- | stmhal/stm32f4xx_it.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/stmhal/stm32f4xx_it.c b/stmhal/stm32f4xx_it.c index e74b1c6c7..aee689d7e 100644 --- a/stmhal/stm32f4xx_it.c +++ b/stmhal/stm32f4xx_it.c @@ -42,15 +42,13 @@ #include "stm32f4xx_it.h"
#include "stm32f4xx_hal.h"
-#include "usbd_cdc_msc_hid.h"
-#include "usbd_cdc_interface.h"
#include "misc.h"
#include "mpconfig.h"
#include "qstr.h"
#include "obj.h"
#include "exti.h"
-#include "servo.h"
+#include "timer.h"
/** @addtogroup STM32F4xx_HAL_Examples
* @{
@@ -351,12 +349,12 @@ void RTC_WKUP_IRQHandler(void) { Handle_EXTI_Irq(EXTI_RTC_WAKEUP);
}
-void TIM2_IRQHandler(void) {
- HAL_TIM_IRQHandler(&TIM2_Handle);
-}
-
void TIM3_IRQHandler(void) {
HAL_TIM_IRQHandler(&TIM3_Handle);
}
+void TIM5_IRQHandler(void) {
+ HAL_TIM_IRQHandler(&TIM5_Handle);
+}
+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|