STM32L0 : I2C2 was missing

pull/15268/head
Jerome Coutant 2022-04-19 15:01:39 +02:00
parent decc6d022c
commit 271ed686f3
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ uint32_t i2c_get_pclk(I2CName i2c)
break;
}
}
#if defined I2C2_BASE
else if (i2c == I2C_2) {
pclk = HAL_RCC_GetPCLK1Freq();
}
#endif
#if defined I2C3_BASE
else if (i2c == I2C_3) {
clocksource = __HAL_RCC_GET_I2C3_SOURCE();