aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/i2c_lld.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/STM32/i2c_lld.h')
-rw-r--r--os/hal/platforms/STM32/i2c_lld.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/os/hal/platforms/STM32/i2c_lld.h b/os/hal/platforms/STM32/i2c_lld.h
index c91e3103a..d964b342a 100644
--- a/os/hal/platforms/STM32/i2c_lld.h
+++ b/os/hal/platforms/STM32/i2c_lld.h
@@ -20,6 +20,17 @@
/*===========================================================================*/
/**
+ * @brief Waiting method switch.
+ * @details If set to @p TRUE than waiting of STOP generation will use
+ * while() loop polling. Otherwise -- virtual timer will be used.
+ * @note The default is @p TRUE.
+ * @note Virtual timer resolution is 1/@p CH_FREQUENCY seconds.
+ */
+#if !defined(STM32_I2C_USE_POLLING_WAIT) || defined(__DOXYGEN__)
+#define STM32_I2C_USE_POLLING_WAIT TRUE
+#endif
+
+/**
* @brief I2C1 driver enable switch.
* @details If set to @p TRUE the support for I2C1 is included.
* @note The default is @p TRUE.