Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

STM32H7 : fix I2C5 build error #15229

Merged
merged 1 commit into from
Feb 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion targets/TARGET_STM/TARGET_STM32H7/i2c_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ uint32_t i2c_get_pclk(I2CName i2c)
clocksource = __HAL_RCC_GET_I2C5_SOURCE();
switch (clocksource) {
case RCC_I2C5CLKSOURCE_D2PCLK1:
pclk = HAL_RCCEx_GetD2PCLK1Freq();
pclk = HAL_RCC_GetPCLK1Freq();
break;
case RCC_I2C5CLKSOURCE_PLL3:
HAL_RCCEx_GetPLL3ClockFreq(&pll3_clocks);
Expand Down