From ea89b80ff4f842b010f9f8ec3280675f81bc6bc5 Mon Sep 17 00:00:00 2001 From: Damien George Date: Fri, 29 Jan 2016 22:31:56 +0000 Subject: stmhal: Make TIM3 available for use by the user. TIM3 is no longer used by USB CDC for triggering outgoing data, so we can now make it available to the user. PWM fading on LED(4) is now gone, but will be reinstated in a new way. --- stmhal/usbd_cdc_interface.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'stmhal/usbd_cdc_interface.c') diff --git a/stmhal/usbd_cdc_interface.c b/stmhal/usbd_cdc_interface.c index 801bcb753..b42d3e219 100644 --- a/stmhal/usbd_cdc_interface.c +++ b/stmhal/usbd_cdc_interface.c @@ -140,10 +140,6 @@ static int8_t CDC_Itf_Init(void) TIM_Config(); #endif - /*##-4- Start the TIM Base generation in interrupt mode ####################*/ - /* Start Channel1 */ - __HAL_TIM_ENABLE_IT(&TIM3_Handle, TIM_IT_UPDATE); - /*##-5- Set Application Buffers ############################################*/ USBD_CDC_SetTxBuffer(&hUSBDDevice, UserTxBuffer, 0); USBD_CDC_SetRxBuffer(&hUSBDDevice, UserRxBuffer); -- cgit v1.2.3