******************************************************************************\r
* @file stm32f7xx_hal_tim.c\r
* @author MCD Application Team\r
- * @version V1.0.0RC1\r
- * @date 24-March-2015\r
+ * @version V1.0.0\r
+ * @date 12-May-2015\r
* @brief TIM HAL module driver.\r
* This file provides firmware functions to manage the following \r
* functionalities of the Timer (TIM) peripheral:\r
assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision));\r
\r
if(htim->State == HAL_TIM_STATE_RESET)\r
- { \r
+ { \r
+ /* Allocate lock resource and initialize it */\r
+ htim->Lock = HAL_UNLOCKED; \r
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */\r
HAL_TIM_OC_MspInit(htim);\r
}\r
\r
if(htim->State == HAL_TIM_STATE_RESET)\r
{\r
+ /* Allocate lock resource and initialize it */\r
+ htim->Lock = HAL_UNLOCKED; \r
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */\r
HAL_TIM_PWM_MspInit(htim);\r
}\r
assert_param(IS_TIM_CLOCKDIVISION_DIV(htim->Init.ClockDivision)); \r
\r
if(htim->State == HAL_TIM_STATE_RESET)\r
- { \r
+ { \r
+ /* Allocate lock resource and initialize it */\r
+ htim->Lock = HAL_UNLOCKED; \r
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */\r
HAL_TIM_IC_MspInit(htim);\r
}\r
assert_param(IS_TIM_OPM_MODE(OnePulseMode));\r
\r
if(htim->State == HAL_TIM_STATE_RESET)\r
- { \r
+ { \r
+ /* Allocate lock resource and initialize it */\r
+ htim->Lock = HAL_UNLOCKED; \r
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */\r
HAL_TIM_OnePulse_MspInit(htim);\r
}\r
\r
if(htim->State == HAL_TIM_STATE_RESET)\r
{ \r
+ /* Allocate lock resource and initialize it */\r
+ htim->Lock = HAL_UNLOCKED; \r
/* Init the low level hardware : GPIO, CLOCK, NVIC and DMA */\r
HAL_TIM_Encoder_MspInit(htim);\r
}\r