summaryrefslogtreecommitdiff
path: root/i2c/i2c.h
diff options
context:
space:
mode:
authorVegard Storheil Eriksen <zyp@jvnv.net>2013-09-07 16:54:58 +0200
committerVegard Storheil Eriksen <zyp@jvnv.net>2013-09-07 16:54:58 +0200
commitb423ad4206ef5fda390ed16154c2cd2cfc50f885 (patch)
treea054efb678c8d8cacc2e899399cd1153f1df22f8 /i2c/i2c.h
parent7b584fbfb8cd9451ecb798c5f27c56b1216b9ca2 (diff)
Removed GPIO handling from I2C driver.
Diffstat (limited to 'i2c/i2c.h')
-rw-r--r--i2c/i2c.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/i2c/i2c.h b/i2c/i2c.h
index f4d6949..ed72aa3 100644
--- a/i2c/i2c.h
+++ b/i2c/i2c.h
@@ -3,7 +3,6 @@
#include <stdint.h>
#include <interrupt/interrupt.h>
-#include <gpio/pin.h>
struct I2C_reg_t {
volatile uint32_t CR1;
@@ -42,7 +41,7 @@ class I2C_t {
void handle_error();
- void enable(Pin& scl, Pin& sda);
+ void enable();
void write_reg(uint8_t addr_, uint8_t reg_, uint8_t data);
void read_reg(uint8_t addr_, uint8_t reg_, uint8_t len, uint8_t* buf);