aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM32/i2c_lld.h
diff options
context:
space:
mode:
authorbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-07-14 14:47:13 +0000
committerbarthess <barthess@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-07-14 14:47:13 +0000
commite02d3607dc1dc88966a78cefc7aadb5eba941908 (patch)
treec879d704d41e007d904d50d1d2a24f0977b286e9 /os/hal/platforms/STM32/i2c_lld.h
parent5fee9bc344b38d79ff1baf26e6365eeae7d407b5 (diff)
downloadChibiOS-e02d3607dc1dc88966a78cefc7aadb5eba941908.tar.gz
ChibiOS-e02d3607dc1dc88966a78cefc7aadb5eba941908.tar.bz2
ChibiOS-e02d3607dc1dc88966a78cefc7aadb5eba941908.zip
I2C. Waits moved from ISR.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/i2c_dev@3161 35acf78f-673a-0410-8e92-d51de3d6d3f4
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.