STM32746G-Discovery board drivers V1.0.0

Dependents:   F746_SD_GraphicEqualizer_ren0620

Fork of BSP_DISCO_F746NG by ST

Files at this revision

API Documentation at this revision

Comitter:
edamame22
Date:
Wed Jun 22 03:48:49 2016 +0000
Parent:
2:458ab1edf6b2
Commit message:
timeout is shortened.; play will not stop.

Changed in this revision

stm32746g_discovery.c Show annotated file Show diff for this revision Revisions of this file
diff -r 458ab1edf6b2 -r 286943c42d38 stm32746g_discovery.c
--- a/stm32746g_discovery.c	Thu Mar 24 20:50:59 2016 +0000
+++ b/stm32746g_discovery.c	Wed Jun 22 03:48:49 2016 +0000
@@ -594,8 +594,8 @@
                                            uint16_t Length)
 {
   HAL_StatusTypeDef status = HAL_OK;
-
-  status = HAL_I2C_Mem_Read(i2c_handler, Addr, (uint16_t)Reg, MemAddress, Buffer, Length, 1000);
+// ren: changed timeout 1000 to 400 
+  status = HAL_I2C_Mem_Read(i2c_handler, Addr, (uint16_t)Reg, MemAddress, Buffer, Length, 500);
 
   /* Check the communication status */
   if(status != HAL_OK)