summaryrefslogtreecommitdiff
path: root/keyboards/hotdox/left.h
diff options
context:
space:
mode:
authorDavid Hoelscher <infinityis@users.noreply.github.com>2024-01-17 07:05:38 -0600
committerGitHub <noreply@github.com>2024-01-17 14:05:38 +0100
commite9bd7d7ad308f9c72c86863bf9f19382c7e2d892 (patch)
treec46ce87aaa57b8f49dc0a2b56527f0bc606038ab /keyboards/hotdox/left.h
parent2b0965944d9065daa65cd25540cf2dd007f23eda (diff)
I2C driver cleanup (#21273)
* remove i2c_start and i2c_stop from i2c drivers * remove static i2c_address variable from chibios i2c driver
Diffstat (limited to 'keyboards/hotdox/left.h')
-rw-r--r--keyboards/hotdox/left.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/keyboards/hotdox/left.h b/keyboards/hotdox/left.h
index 3d8b5a6ead..32faadba21 100644
--- a/keyboards/hotdox/left.h
+++ b/keyboards/hotdox/left.h
@@ -10,10 +10,7 @@
#define MCP23017_A1 0
#define MCP23017_A2 0
-#define I2C_ADDR (0x20)
-#define I2C_ADDR_WRITE ((I2C_ADDR << 1) | I2C_WRITE)
-#define I2C_ADDR_READ ((I2C_ADDR << 1) | I2C_READ)
-
+#define I2C_ADDR ((0x20) << 1)
#define MCP23017_B0_IODIRA 0x00
#define MCP23017_B0_IODIRB 0x01
@@ -40,8 +37,6 @@
#define HOTDOX_I2C_TIMEOUT 100
-typedef int16_t i2c_status_t;
-
void left_init(void);
void left_scan(void);