diff options
| author | Damien George | 2016-01-09 21:59:15 +0000 |
|---|---|---|
| committer | Damien George | 2016-01-29 15:21:43 +0000 |
| commit | d3631339176b768ce1ffdc535223385245ff906b (patch) | |
| tree | 51f2b5063787735a3ec5f936512a0599b1d390ec /stmhal/usbd_cdc_interface.h | |
| parent | 7417ccfb0d27c7c09b5ed6468a9e3ca729af41bb (diff) | |
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/usbd_cdc_interface.h')
| -rw-r--r-- | stmhal/usbd_cdc_interface.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/stmhal/usbd_cdc_interface.h b/stmhal/usbd_cdc_interface.h index 0585d06c8..f74b42bbe 100644 --- a/stmhal/usbd_cdc_interface.h +++ b/stmhal/usbd_cdc_interface.h @@ -31,8 +31,6 @@ extern const USBD_CDC_ItfTypeDef USBD_CDC_fops;
-void USBD_CDC_HAL_TIM_PeriodElapsedCallback(void);
-
int USBD_CDC_IsConnected(void);
void USBD_CDC_SetInterrupt(int chr, void *data);
|
