summaryrefslogtreecommitdiff
path: root/keyboards/lets_split/i2c.c
diff options
context:
space:
mode:
authorDamien <Dbroqua@users.noreply.github.com>2016-09-25 14:03:27 +0200
committerGitHub <noreply@github.com>2016-09-25 14:03:27 +0200
commitb75cb53c4a67597dd453fb8bb54af1936b422f6b (patch)
tree590591f00a3782b43253a1321220c7652cd9799b /keyboards/lets_split/i2c.c
parent7a91cce869f7cda8a42bf071ba77ee6096772d20 (diff)
parent67252625165ffa0a08e723a52562a853aa4b496b (diff)
Merge pull request #5 from jackhumbert/master
Merge from jackhumbert
Diffstat (limited to 'keyboards/lets_split/i2c.c')
-rw-r--r--keyboards/lets_split/i2c.c3
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