aboutsummaryrefslogtreecommitdiff
path: root/keyboards/lily58/i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/lily58/i2c.h')
-rwxr-xr-x[-rw-r--r--]keyboards/lily58/i2c.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/keyboards/lily58/i2c.h b/keyboards/lily58/i2c.h
index c15b6bc50..710662c7a 100644..100755
--- a/keyboards/lily58/i2c.h
+++ b/keyboards/lily58/i2c.h
@@ -1,5 +1,4 @@
1#ifndef I2C_H 1#pragma once
2#define I2C_H
3 2
4#include <stdint.h> 3#include <stdint.h>
5 4
@@ -15,7 +14,7 @@
15 14
16#define SLAVE_BUFFER_SIZE 0x10 15#define SLAVE_BUFFER_SIZE 0x10
17 16
18// i2c SCL clock frequency 17// i2c SCL clock frequency 400kHz
19#define SCL_CLOCK 400000L 18#define SCL_CLOCK 400000L
20 19
21extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE]; 20extern volatile uint8_t i2c_slave_buffer[SLAVE_BUFFER_SIZE];
@@ -45,5 +44,3 @@ extern unsigned char i2c_readNak(void);
45extern unsigned char i2c_read(unsigned char ack); 44extern unsigned char i2c_read(unsigned char ack);
46 45
47#define i2c_read(ack) (ack) ? i2c_readAck() : i2c_readNak(); 46#define i2c_read(ack) (ack) ? i2c_readAck() : i2c_readNak();
48
49#endif