diff --git a/boards/common/silabs/drivers/pic/pic.c b/boards/common/silabs/drivers/pic/pic.c index 2d4fb58b77..9b1f27b860 100644 --- a/boards/common/silabs/drivers/pic/pic.c +++ b/boards/common/silabs/drivers/pic/pic.c @@ -61,8 +61,6 @@ void pic_init(void) { gpio_init(PIC_INT_WAKE_PIN, GPIO_OD); gpio_set(PIC_INT_WAKE_PIN); - - i2c_init_master(PIC_I2C, I2C_SPEED_NORMAL); } void pic_write(uint8_t addr, uint8_t value) @@ -74,7 +72,7 @@ void pic_write(uint8_t addr, uint8_t value) /* write to gpio expander */ i2c_acquire(PIC_I2C); uint8_t bytes[] = { addr, value }; - i2c_write_bytes(PIC_I2C, PIC_I2C_ADDR, bytes, 2); + i2c_write_bytes(PIC_I2C, PIC_I2C_ADDR, bytes, 2, 0); i2c_release(PIC_I2C); /* put PIC in sleep mode again */ diff --git a/boards/slstk3401a/include/periph_conf.h b/boards/slstk3401a/include/periph_conf.h index e2f394fe65..550dda54a0 100644 --- a/boards/slstk3401a/include/periph_conf.h +++ b/boards/slstk3401a/include/periph_conf.h @@ -96,7 +96,8 @@ static const i2c_conf_t i2c_config[] = { .loc = I2C_ROUTELOC0_SDALOC_LOC15 | I2C_ROUTELOC0_SCLLOC_LOC15, .cmu = cmuClock_I2C0, - .irq = I2C0_IRQn + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL } }; diff --git a/boards/sltb001a/include/periph_conf.h b/boards/sltb001a/include/periph_conf.h index 4ab11bcdea..4139efac8e 100644 --- a/boards/sltb001a/include/periph_conf.h +++ b/boards/sltb001a/include/periph_conf.h @@ -96,8 +96,8 @@ static const i2c_conf_t i2c_config[] = { .loc = I2C_ROUTELOC0_SDALOC_LOC15 | I2C_ROUTELOC0_SCLLOC_LOC15, .cmu = cmuClock_I2C0, - .irq = I2C0_IRQn - + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL } }; diff --git a/boards/slwstk6000b/include/periph_conf.h b/boards/slwstk6000b/include/periph_conf.h index f53a9cf3b7..675fa085be 100644 --- a/boards/slwstk6000b/include/periph_conf.h +++ b/boards/slwstk6000b/include/periph_conf.h @@ -98,7 +98,8 @@ static const i2c_conf_t i2c_config[] = { .loc = I2C_ROUTELOC0_SDALOC_LOC16 | I2C_ROUTELOC0_SCLLOC_LOC14, .cmu = cmuClock_I2C0, - .irq = I2C0_IRQn + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL } }; diff --git a/boards/stk3600/include/periph_conf.h b/boards/stk3600/include/periph_conf.h index 505bd85c79..29fcbe12b5 100644 --- a/boards/stk3600/include/periph_conf.h +++ b/boards/stk3600/include/periph_conf.h @@ -115,7 +115,8 @@ static const i2c_conf_t i2c_config[] = { .scl_pin = GPIO_PIN(PD, 7), .loc = I2C_ROUTE_LOCATION_LOC1, .cmu = cmuClock_I2C0, - .irq = I2C0_IRQn + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL }, { .dev = I2C1, @@ -123,7 +124,8 @@ static const i2c_conf_t i2c_config[] = { .scl_pin = GPIO_PIN(PC, 5), .loc = I2C_ROUTE_LOCATION_LOC0, .cmu = cmuClock_I2C1, - .irq = I2C1_IRQn + .irq = I2C1_IRQn, + .speed = I2C_SPEED_NORMAL } }; diff --git a/boards/stk3700/include/periph_conf.h b/boards/stk3700/include/periph_conf.h index 11ec369011..e855fb742a 100644 --- a/boards/stk3700/include/periph_conf.h +++ b/boards/stk3700/include/periph_conf.h @@ -115,7 +115,8 @@ static const i2c_conf_t i2c_config[] = { .scl_pin = GPIO_PIN(PD, 7), .loc = I2C_ROUTE_LOCATION_LOC1, .cmu = cmuClock_I2C0, - .irq = I2C0_IRQn + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL }, { .dev = I2C1, @@ -123,7 +124,8 @@ static const i2c_conf_t i2c_config[] = { .scl_pin = GPIO_PIN(PC, 5), .loc = I2C_ROUTE_LOCATION_LOC0, .cmu = cmuClock_I2C1, - .irq = I2C1_IRQn + .irq = I2C1_IRQn, + .speed = I2C_SPEED_NORMAL } };