aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/I2C/halconf.h
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/I2C/halconf.h')
-rw-r--r--testhal/STM32/I2C/halconf.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/testhal/STM32/I2C/halconf.h b/testhal/STM32/I2C/halconf.h
index f64120126..da52785c0 100644
--- a/testhal/STM32/I2C/halconf.h
+++ b/testhal/STM32/I2C/halconf.h
@@ -178,7 +178,7 @@
* @note Disabling this option saves both code and data space.
*/
#if !defined(I2C_USE_WAIT) || defined(__DOXYGEN__)
-#define I2C_USE_WAIT TRUE
+#define I2C_USE_WAIT FALSE
#endif
/**
@@ -188,6 +188,13 @@
#define I2C_USE_MUTUAL_EXCLUSION TRUE
#endif
+/**
+ * @brief Switch to asynchronouse driver with callbacks.
+ */
+#if !defined(I2C_SUPPORTS_CALLBACKS) || defined(__DOXYGEN__)
+#define I2C_SUPPORTS_CALLBACKS TRUE
+#endif
+
/*===========================================================================*/
/* MAC driver related settings. */
/*===========================================================================*/