]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M7_STM32F7_STM32756G-EVAL_IAR_Keil/ST_Library/stm32f7xx_hal_tim.c
Update library files used in STM32F7 demo to the latest version released by ST.
[freertos] / FreeRTOS / Demo / CORTEX_M7_STM32F7_STM32756G-EVAL_IAR_Keil / ST_Library / stm32f7xx_hal_tim.c
index d7b18cef1c4d2b086a1742fe8a19124da0819cb4..10ac18abb9bdf1227ae2ecbab38c92c9ef703860 100644 (file)
@@ -2,8 +2,8 @@
   ******************************************************************************\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
@@ -489,7 +489,9 @@ HAL_StatusTypeDef HAL_TIM_OC_Init(TIM_HandleTypeDef* htim)
   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
@@ -997,6 +999,8 @@ HAL_StatusTypeDef HAL_TIM_PWM_Init(TIM_HandleTypeDef *htim)
 \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
@@ -1506,7 +1510,9 @@ HAL_StatusTypeDef HAL_TIM_IC_Init(TIM_HandleTypeDef *htim)
   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
@@ -1983,7 +1989,9 @@ HAL_StatusTypeDef HAL_TIM_OnePulse_Init(TIM_HandleTypeDef *htim, uint32_t OnePul
   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
@@ -2265,6 +2273,8 @@ HAL_StatusTypeDef HAL_TIM_Encoder_Init(TIM_HandleTypeDef *htim,  TIM_Encoder_Ini
 \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