summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/stm32f4xx_it.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-03-15 11:52:29 +0000
committerDamien George <damien.p.george@gmail.com>2014-03-15 11:52:29 +0000
commite285511a23046e3a72b819f183fd83c6949e2cb4 (patch)
treee56d0acb1463bee4008b2da8030a97b2ea0b366d /stmhal/stm32f4xx_it.c
parent87e423b8661c2a058307125fd3a47dfc32cca888 (diff)
downloadmicropython-e285511a23046e3a72b819f183fd83c6949e2cb4.tar.gz
micropython-e285511a23046e3a72b819f183fd83c6949e2cb4.zip
stmhal: Get USB CDC REPL working.
New USB HAL is quite a bit improved over previous one. Now has better callbacks and flow control. REPL over USB CDC now works as before, except for soft-reset (since USB driver uses malloc...).
Diffstat (limited to 'stmhal/stm32f4xx_it.c')
-rw-r--r--stmhal/stm32f4xx_it.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/stmhal/stm32f4xx_it.c b/stmhal/stm32f4xx_it.c
index 89764f07d6..9100d63a2a 100644
--- a/stmhal/stm32f4xx_it.c
+++ b/stmhal/stm32f4xx_it.c
@@ -64,6 +64,7 @@
extern void fatality();
extern PCD_HandleTypeDef hpcd;
+extern TIM_HandleTypeDef USBD_CDC_TimHandle;
/* Private function prototypes -----------------------------------------------*/
/* Private functions ---------------------------------------------------------*/
@@ -348,4 +349,9 @@ void RTC_WKUP_IRQHandler(void) {
Handle_EXTI_Irq(EXTI_RTC_WAKEUP);
}
+void TIM3_IRQHandler(void) {
+ // USBD CDC timer is TIM3
+ HAL_TIM_IRQHandler(&USBD_CDC_TimHandle);
+}
+
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/