From 9093a12b7af292b3fffcfd716f2dbc585f8f0a2c Mon Sep 17 00:00:00 2001 From: Giulio Moro Date: Sat, 23 Nov 2024 11:22:54 -0500 Subject: [PATCH] Trill: updated I2c.h to new daisy::Pin API --- src/dev/trill/I2c.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dev/trill/I2c.h b/src/dev/trill/I2c.h index fde86a5f0..e593d3dfe 100644 --- a/src/dev/trill/I2c.h +++ b/src/dev/trill/I2c.h @@ -40,13 +40,13 @@ inline int I2c::initI2C_RW(int bus, int address, int dummy) // TODO: how do we log from here? case 1: cfg.periph = I2CHandle::Config::Peripheral::I2C_1; - cfg.pin_config.scl = {DSY_GPIOB, 8}; - cfg.pin_config.sda = {DSY_GPIOB, 9}; + cfg.pin_config.scl = {PORTB, 8}; + cfg.pin_config.sda = {PORTB, 9}; break; case 4: cfg.periph = I2CHandle::Config::Peripheral::I2C_4; - cfg.pin_config.scl = {DSY_GPIOB, 6}; - cfg.pin_config.sda = {DSY_GPIOB, 7}; + cfg.pin_config.scl = {PORTB, 6}; + cfg.pin_config.sda = {PORTB, 7}; break; } cfg.address = i2cAddress; // this seems unused anyhow