diff options
author | flabbergast <s3+flabbergast@sdfeu.org> | 2016-04-18 22:53:11 +0100 |
---|---|---|
committer | flabbergast <s3+flabbergast@sdfeu.org> | 2016-04-25 11:53:55 +0100 |
commit | 0a37322265bb0e109d8f4a840ccc1ccbb19ffdfa (patch) | |
tree | 1ea1196e04e0632f33622f50f2e519bf534e0af5 /os/hal/ports/KINETIS/LLD/hal_i2c_lld.h | |
parent | fa9644e655ca8304a27a85a82a457bbc5785fdcc (diff) | |
download | ChibiOS-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.h | 7 |
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. */
/*===========================================================================*/
|