We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7544f7e commit 506390bCopy full SHA for 506390b
targets/TARGET_STM/i2c_api.c
@@ -79,7 +79,11 @@ static I2C_HandleTypeDef *i2c_handles[I2C_NUM];
79
not based on accurate values, they just guarantee that the application will
80
not remain stuck if the I2C communication is corrupted.
81
*/
82
+#ifdef TARGET_STM32H7
83
+#define FLAG_TIMEOUT ((int)0x1100)
84
+#else
85
#define FLAG_TIMEOUT ((int)0x1000)
86
+#endif
87
88
/* Declare i2c_init_internal to be used in this file */
89
void i2c_init_internal(i2c_t *obj, const i2c_pinmap_t *pinmap);
0 commit comments