Skip to content

Commit 9093a12

Browse files
committed
Trill: updated I2c.h to new daisy::Pin API
1 parent 7846f97 commit 9093a12

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/dev/trill/I2c.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ inline int I2c::initI2C_RW(int bus, int address, int dummy)
4040
// TODO: how do we log from here?
4141
case 1:
4242
cfg.periph = I2CHandle::Config::Peripheral::I2C_1;
43-
cfg.pin_config.scl = {DSY_GPIOB, 8};
44-
cfg.pin_config.sda = {DSY_GPIOB, 9};
43+
cfg.pin_config.scl = {PORTB, 8};
44+
cfg.pin_config.sda = {PORTB, 9};
4545
break;
4646
case 4:
4747
cfg.periph = I2CHandle::Config::Peripheral::I2C_4;
48-
cfg.pin_config.scl = {DSY_GPIOB, 6};
49-
cfg.pin_config.sda = {DSY_GPIOB, 7};
48+
cfg.pin_config.scl = {PORTB, 6};
49+
cfg.pin_config.sda = {PORTB, 7};
5050
break;
5151
}
5252
cfg.address = i2cAddress; // this seems unused anyhow

0 commit comments

Comments
 (0)