diff options
author | xyverz <xyverz@gmail.com> | 2016-09-30 23:16:50 -0700 |
---|---|---|
committer | xyverz <xyverz@gmail.com> | 2016-09-30 23:16:50 -0700 |
commit | e69e4c1ef2cd553597e10d1ae5b0384d29f2c16f (patch) | |
tree | 957641d33f60e75b8fd747da11ed3bca06f0cfab /keyboards/lets_split/i2c.c | |
parent | e3c3170610561042df3d67f358c15553878a2012 (diff) | |
parent | 35e6870e5c8943c044187256e01c96ef400ca067 (diff) |
Merge remote-tracking branch 'jackhumbert/master'
Diffstat (limited to 'keyboards/lets_split/i2c.c')
-rw-r--r-- | keyboards/lets_split/i2c.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/keyboards/lets_split/i2c.c b/keyboards/lets_split/i2c.c index c72789403e..084c890c40 100644 --- a/keyboards/lets_split/i2c.c +++ b/keyboards/lets_split/i2c.c @@ -6,6 +6,8 @@ #include <stdbool.h> #include "i2c.h" +#ifdef USE_I2C + // Limits the amount of we wait for any one i2c transaction. // Since were running SCL line 100kHz (=> 10μs/bit), and each transactions is // 9 bits, a single transaction will take around 90μs to complete. @@ -157,3 +159,4 @@ ISR(TWI_vect) { // Reset everything, so we are ready for the next TWI interrupt TWCR |= (1<<TWIE) | (1<<TWINT) | (ack<<TWEA) | (1<<TWEN); } +#endif |