diff options
author | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-09-22 16:32:29 -0400 |
---|---|---|
committer | cbbrowne <cbbrowne@cbbrowne.tor.int-afilias.info> | 2016-09-22 16:32:29 -0400 |
commit | 7a183b4e8b88978013797ebd2657ab2e92250423 (patch) | |
tree | f9696e9c929cb41b1d8738a27bc458bcf41cb7c8 /keyboards/lets_split/i2c.c | |
parent | 3b57a35532c7c1dd3c4d50bbd93d3d379b492270 (diff) | |
parent | 0f205a854ff18967acef5a6060efb655b6b77247 (diff) |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
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 |