This commit is contained in:
Thomas Klaehn 2019-07-25 14:34:05 +02:00
parent 98c04194fe
commit 7f5d18d554

View File

@ -23,7 +23,9 @@ int i2c_open(const struct i2c_bb *i2c)
assert(NULL != i2c);
res = gpio_open(i2c->sda);
res |= gpio_direction(i2c->sda, OUT);
res |= gpio_open(i2c->scl);
res |= gpio_direction(i2c->scl, OUT);
res |= gpio_write(i2c->sda, 1);
res |= gpio_write(i2c->scl, 1);