summaryrefslogtreecommitdiff
path: root/stmhal/stm32f4xx_hal_msp.c
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/stm32f4xx_hal_msp.c')
-rw-r--r--stmhal/stm32f4xx_hal_msp.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/stmhal/stm32f4xx_hal_msp.c b/stmhal/stm32f4xx_hal_msp.c
index 816b1427e..c64f37795 100644
--- a/stmhal/stm32f4xx_hal_msp.c
+++ b/stmhal/stm32f4xx_hal_msp.c
@@ -50,6 +50,12 @@
#include "usbd_cdc_msc.h"
#include "usbd_cdc_interface.h"
+#include "misc.h"
+#include "mpconfig.h"
+#include "qstr.h"
+#include "obj.h"
+#include "servo.h"
+
/** @addtogroup STM32F4xx_HAL_Driver
* @{
*/
@@ -155,6 +161,14 @@ void HAL_RTC_MspDeInit(RTC_HandleTypeDef *hrtc)
__HAL_RCC_RTC_DISABLE();
}
+void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) {
+ if (htim == &USBD_CDC_TIM3_Handle) {
+ USBD_CDC_HAL_TIM_PeriodElapsedCallback();
+ } else if (htim == &servo_TIM2_Handle) {
+ servo_timer_irq_callback();
+ }
+}
+
/**
* @}
*/