From 2b7a63b9b5c8ee324784b080f51114a12fe276bc Mon Sep 17 00:00:00 2001 From: Marian Buschsieweke Date: Mon, 26 Nov 2018 13:12:36 +0100 Subject: [PATCH] boards/common/stm32f103c8: Fixed I2C configuration In commit e90f2b439e37db7cce0bb929932aaef847830e24 the I2C config has been adapted to the new I2C API. However, the pins of I2C_DEV(0) have been changed from PB6 and PB7 to PB8 and PB9. While PB8 and PB9 also can be used for I2C1 by remapping I2C1, this is not done. As a result, I2C1 was unusable. This commit restores the default I2C1 pins for I2C_DEV(0), resulting in I2C_DEV(0) becoming usable again. --- boards/common/stm32f103c8/include/periph_conf.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boards/common/stm32f103c8/include/periph_conf.h b/boards/common/stm32f103c8/include/periph_conf.h index bbd0119b41..2f56a63677 100644 --- a/boards/common/stm32f103c8/include/periph_conf.h +++ b/boards/common/stm32f103c8/include/periph_conf.h @@ -162,8 +162,8 @@ static const i2c_conf_t i2c_config[] = { { .dev = I2C1, .speed = I2C_SPEED_NORMAL, - .scl_pin = GPIO_PIN(PORT_B, 8), - .sda_pin = GPIO_PIN(PORT_B, 9), + .scl_pin = GPIO_PIN(PORT_B, 6), + .sda_pin = GPIO_PIN(PORT_B, 7), .bus = APB1, .rcc_mask = RCC_APB1ENR_I2C1EN, .clk = CLOCK_APB1,