From d3631339176b768ce1ffdc535223385245ff906b Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 9 Jan 2016 21:59:15 +0000 Subject: 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. --- stmhal/timer.c | 1 - 1 file changed, 1 deletion(-) (limited to 'stmhal/timer.c') diff --git a/stmhal/timer.c b/stmhal/timer.c index e1d659ceb..850e0c829 100644 --- a/stmhal/timer.c +++ b/stmhal/timer.c @@ -252,7 +252,6 @@ TIM_HandleTypeDef *timer_tim6_init(uint freq) { void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim) { #if !defined(MICROPY_HW_USE_ALT_IRQ_FOR_CDC) if (htim == &TIM3_Handle) { - USBD_CDC_HAL_TIM_PeriodElapsedCallback(); } else #endif if (htim == &TIM5_Handle) { -- cgit v1.2.3