aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-24 21:16:08 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-01-24 21:30:36 +0100
commita5db02da0a46db94b9744843c467894883f152b8 (patch)
tree8baa8ebd7d0138fd684f15be0fbc69015fbdd6a9
parent4e64c966ddee9675db42df9dad2c68e3db7e28f5 (diff)
downloadglutte-o-matic-a5db02da0a46db94b9744843c467894883f152b8.tar.gz
glutte-o-matic-a5db02da0a46db94b9744843c467894883f152b8.tar.bz2
glutte-o-matic-a5db02da0a46db94b9744843c467894883f152b8.zip
Fix i2c GPIOB init
-rw-r--r--src/fsm/i2c.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fsm/i2c.c b/src/fsm/i2c.c
index af1eb34..6f7e193 100644
--- a/src/fsm/i2c.c
+++ b/src/fsm/i2c.c
@@ -144,7 +144,7 @@ void i2c_init()
}
RCC_APB1PeriphClockCmd(RCC_APB1Periph_I2C1, ENABLE);
- RCC_APB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);
+ RCC_AHB1PeriphClockCmd(RCC_AHB1Periph_GPIOB, ENABLE);
i2c_device_init();
i2c_init_done = 1;