Skip to content

Commit 506390b

Browse files
committed
Increase FLAG_TIMEOUT to avoid misleading triggers
1 parent 7544f7e commit 506390b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

targets/TARGET_STM/i2c_api.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,11 @@ static I2C_HandleTypeDef *i2c_handles[I2C_NUM];
7979
not based on accurate values, they just guarantee that the application will
8080
not remain stuck if the I2C communication is corrupted.
8181
*/
82+
#ifdef TARGET_STM32H7
83+
#define FLAG_TIMEOUT ((int)0x1100)
84+
#else
8285
#define FLAG_TIMEOUT ((int)0x1000)
86+
#endif
8387

8488
/* Declare i2c_init_internal to be used in this file */
8589
void i2c_init_internal(i2c_t *obj, const i2c_pinmap_t *pinmap);

0 commit comments

Comments
 (0)