From 0119fc7532c573bd596fb6173b4d36ef5260027a Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 22 Mar 2014 18:34:16 +0000 Subject: stmhal: Servo driver can move at a given speed. --- stmhal/usbd_cdc_interface.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'stmhal/usbd_cdc_interface.h') 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); -- cgit v1.2.3