]> git.sur5r.net Git - freertos/blobdiff - FreeRTOS/Demo/CORTEX_M7_STM32F7_STM32756G-EVAL_IAR_Keil/ST_Library/stm32f7xx_hal_i2c.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_i2c.c
index e4a2a33d24c1587f0719299b5b0639fe9bc6288e..743daf6844f5d388e04ba880ec5903498d8967b9 100644 (file)
@@ -2,8 +2,8 @@
   ******************************************************************************\r
   * @file    stm32f7xx_hal_i2c.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   I2C HAL module driver.\r
   *          This file provides firmware functions to manage the following \r
   *          functionalities of the Inter Integrated Circuit (I2C) peripheral:\r
@@ -307,6 +307,8 @@ HAL_StatusTypeDef HAL_I2C_Init(I2C_HandleTypeDef *hi2c)
 \r
   if(hi2c->State == HAL_I2C_STATE_RESET)\r
   {\r
+    /* Allocate lock resource and initialize it */\r
+    hi2c->Lock = HAL_UNLOCKED;\r
     /* Init the low level hardware : GPIO, CLOCK, CORTEX...etc */\r
     HAL_I2C_MspInit(hi2c);\r
   }\r