aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/KINETIS/LLD/hal_i2c_lld.h
diff options
context:
space:
mode:
authorflabbergast <s3+flabbergast@sdfeu.org>2016-04-18 22:53:11 +0100
committerflabbergast <s3+flabbergast@sdfeu.org>2016-04-25 11:53:55 +0100
commit0a37322265bb0e109d8f4a840ccc1ccbb19ffdfa (patch)
tree1ea1196e04e0632f33622f50f2e519bf534e0af5 /os/hal/ports/KINETIS/LLD/hal_i2c_lld.h
parentfa9644e655ca8304a27a85a82a457bbc5785fdcc (diff)
downloadChibiOS-Contrib-0a37322265bb0e109d8f4a840ccc1ccbb19ffdfa.tar.gz
ChibiOS-Contrib-0a37322265bb0e109d8f4a840ccc1ccbb19ffdfa.tar.bz2
ChibiOS-Contrib-0a37322265bb0e109d8f4a840ccc1ccbb19ffdfa.zip
[KINETIS] I2C driver: implement timeout.
Diffstat (limited to 'os/hal/ports/KINETIS/LLD/hal_i2c_lld.h')
-rw-r--r--os/hal/ports/KINETIS/LLD/hal_i2c_lld.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/os/hal/ports/KINETIS/LLD/hal_i2c_lld.h b/os/hal/ports/KINETIS/LLD/hal_i2c_lld.h
index a7214c5..2b25df2 100644
--- a/os/hal/ports/KINETIS/LLD/hal_i2c_lld.h
+++ b/os/hal/ports/KINETIS/LLD/hal_i2c_lld.h
@@ -77,6 +77,13 @@
#define KINETIS_I2C_I2C1_PRIORITY 12
#endif
+/**
+ * @brief Timeout for external clearing BUSY bus (in ms).
+ */
+#if !defined(KINETIS_I2C_BUSY_TIMEOUT) || defined(__DOXYGEN__)
+#define KINETIS_I2C_BUSY_TIMEOUT 50
+#endif
+
/*===========================================================================*/
/* Derived constants and error checks. */
/*===========================================================================*/