diff options
author | Damien George <damien.p.george@gmail.com> | 2016-01-09 21:59:15 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-01-29 15:21:43 +0000 |
commit | d3631339176b768ce1ffdc535223385245ff906b (patch) | |
tree | 51f2b5063787735a3ec5f936512a0599b1d390ec /stmhal/stm32_it.c | |
parent | 7417ccfb0d27c7c09b5ed6468a9e3ca729af41bb (diff) | |
download | micropython-d3631339176b768ce1ffdc535223385245ff906b.tar.gz micropython-d3631339176b768ce1ffdc535223385245ff906b.zip |
stmhal: Make USB CDC driver use SOF instead of TIM3 for outgoing data.
Previous to this patch the USB CDC driver used TIM3 to trigger the
sending of outgoing data over USB serial. This patch changes the
behaviour so that the USB SOF interrupt is used to trigger the processing
of the sending. This reduces latency and increases bandwidth of outgoing
data.
Thanks to Martin Fischer, aka @hoihu, for the idea and initial prototype.
See PR #1713.
Diffstat (limited to 'stmhal/stm32_it.c')
-rw-r--r-- | stmhal/stm32_it.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/stmhal/stm32_it.c b/stmhal/stm32_it.c index abef2ca79f..57b5d85302 100644 --- a/stmhal/stm32_it.c +++ b/stmhal/stm32_it.c @@ -480,8 +480,6 @@ void EXTI15_10_IRQHandler(void) { void PVD_IRQHandler(void) { IRQ_ENTER(PVD_IRQn); #if defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC) - extern void USBD_CDC_HAL_TIM_PeriodElapsedCallback(void); - USBD_CDC_HAL_TIM_PeriodElapsedCallback(); #endif Handle_EXTI_Irq(EXTI_PVD_OUTPUT); IRQ_EXIT(PVD_IRQn); |