mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
Diff: targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_tim.c
- Revision:
- 106:ced8cbb51063
- Parent:
- 87:085cde657901
- Child:
- 226:b062af740e40
--- a/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_tim.c Mon Feb 24 10:30:08 2014 +0000 +++ b/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F401RE/stm32f4xx_hal_tim.c Wed Feb 26 09:45:12 2014 +0000 @@ -2,8 +2,8 @@ ****************************************************************************** * @file stm32f4xx_hal_tim.c * @author MCD Application Team - * @version V1.0.0RC2 - * @date 04-February-2014 + * @version V1.0.0 + * @date 18-February-2014 * @brief TIM HAL module driver. * This file provides firmware functions to manage the following * functionalities of the Timer (TIM) peripheral: @@ -248,6 +248,9 @@ /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; } @@ -511,7 +514,10 @@ /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; - + + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; } @@ -1005,7 +1011,10 @@ /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; - + + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; } @@ -1502,7 +1511,10 @@ /* Change TIM state */ htim->State = HAL_TIM_STATE_RESET; - + + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; } @@ -1971,8 +1983,11 @@ HAL_TIM_OnePulse_MspDeInit(htim); /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - + htim->State = HAL_TIM_STATE_RESET; + + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; } @@ -2274,8 +2289,11 @@ HAL_TIM_Encoder_MspDeInit(htim); /* Change TIM state */ - htim->State = HAL_TIM_STATE_RESET; - + htim->State = HAL_TIM_STATE_RESET; + + /* Release Lock */ + __HAL_UNLOCK(htim); + return HAL_OK; }