aboutsummaryrefslogtreecommitdiff
path: root/stmhal/usbd_cdc_interface.h
diff options
context:
space:
mode:
Diffstat (limited to 'stmhal/usbd_cdc_interface.h')
-rw-r--r--stmhal/usbd_cdc_interface.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/stmhal/usbd_cdc_interface.h b/stmhal/usbd_cdc_interface.h
index bcb6333a6..f0c8404ff 100644
--- a/stmhal/usbd_cdc_interface.h
+++ b/stmhal/usbd_cdc_interface.h
@@ -36,8 +36,8 @@
/* Definition for TIMx clock resources */
#define USBD_CDC_TIMx TIM3
#define USBD_CDC_TIMx_CLK_ENABLE __TIM3_CLK_ENABLE
-#define USBD_CDC_TIMx_FORCE_RESET() __USART3_FORCE_RESET()
-#define USBD_CDC_TIMx_RELEASE_RESET() __USART3_RELEASE_RESET()
+#define USBD_CDC_TIMx_FORCE_RESET() __TIM3_FORCE_RESET()
+#define USBD_CDC_TIMx_RELEASE_RESET() __TIM3_RELEASE_RESET()
/* Definition for TIMx's NVIC */
#define USBD_CDC_TIMx_IRQn TIM3_IRQn
@@ -47,8 +47,11 @@
The period depends on USBD_CDC_POLLING_INTERVAL */
#define USBD_CDC_POLLING_INTERVAL 10 /* in ms. The max is 65 and the min is 1 */
+extern TIM_HandleTypeDef USBD_CDC_TIM3_Handle;
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);
void USBD_CDC_Tx(const char *str, uint32_t len);