Skip to content

Commit

Permalink
[board] Fix I2C 400kHz for H7 common board (#3027)
Browse files Browse the repository at this point in the history
  • Loading branch information
fvantienen committed May 1, 2023
1 parent cd03b42 commit e5fa273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/arch/chibios/common_board.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@
#define I2C_CFG_400KHZ_TIMINGR (STM32_TIMINGR_PRESC(6U) | STM32_TIMINGR_SCLDEL(0U) | STM32_TIMINGR_SDADEL(0U) | STM32_TIMINGR_SCLH(3U) | STM32_TIMINGR_SCLL(13U)) // 0x6000030D
#elif defined(STM32H7XX)
#define I2C_CFG_100KHZ_TIMINGR (STM32_TIMINGR_PRESC(0U) | STM32_TIMINGR_SCLDEL(7U) | STM32_TIMINGR_SDADEL(0U) | STM32_TIMINGR_SCLH(124U) | STM32_TIMINGR_SCLL(187U)) // 0x00707CBB
#define I2C_CFG_400KHZ_TIMINGR (STM32_TIMINGR_PRESC(0U) | STM32_TIMINGR_SCLDEL(3U) | STM32_TIMINGR_SDADEL(0U) | STM32_TIMINGR_SCLH(16U) | STM32_TIMINGR_SCLL(56U)) // 0x00300F38
#define I2C_CFG_400KHZ_TIMINGR (STM32_TIMINGR_PRESC(0U) | STM32_TIMINGR_SCLDEL(3U) | STM32_TIMINGR_SDADEL(0U) | STM32_TIMINGR_SCLH(15U) | STM32_TIMINGR_SCLL(56U)) // 0x00300F38
#endif


Expand Down

0 comments on commit e5fa273

Please sign in to comment.