diff options
Diffstat (limited to 'stmhal/i2c.c')
-rw-r--r-- | stmhal/i2c.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/stmhal/i2c.c b/stmhal/i2c.c index 81fc33e8f2..59f3a4fe4b 100644 --- a/stmhal/i2c.c +++ b/stmhal/i2c.c @@ -196,6 +196,7 @@ void i2c_init(I2C_HandleTypeDef *i2c) { // init the GPIO lines for (uint i = 0; i < 2; i++) { + mp_hal_gpio_clock_enable(pins[i]->gpio); GPIO_InitStructure.Pin = pins[i]->pin_mask; HAL_GPIO_Init(pins[i]->gpio, &GPIO_InitStructure); } |