Skip to content

Commit 99cb885

Browse files
authored
Merge pull request #15249 from pilotak/master
STM32G4: Fix I2C timing
2 parents 170aea5 + bf599a2 commit 99cb885

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

targets/TARGET_STM/TARGET_STM32G4/i2c_device.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ extern "C" {
2525
/* Define I2C Device */
2626
#if DEVICE_I2C
2727

28-
// Common settings: I2C clock = 64 MHz, Analog filter = ON, Digital filter coefficient = 0
29-
#define TIMING_VAL_160M_CLK_100KHZ 0xC0311319 // Standard mode with Rise Time = 400ns and Fall Time = 100ns
30-
#define TIMING_VAL_160M_CLK_400KHZ 0x10B1102E // Fast mode with Rise Time = 250ns and Fall Time = 100ns
31-
#define TIMING_VAL_160M_CLK_1MHZ 0x00710B1E // Fast mode Plus with Rise Time = 60ns and Fall Time = 100ns
28+
// Common settings: I2C clock = 160 MHz, Analog filter = ON, Digital filter coefficient = 0
29+
#define TIMING_VAL_160M_CLK_100KHZ 0x90A13E56 // Standard mode with Rise Time = 400ns and Fall Time = 100ns
30+
#define TIMING_VAL_160M_CLK_400KHZ 0x30D2153A // Fast mode with Rise Time = 250ns and Fall Time = 100ns
31+
#define TIMING_VAL_160M_CLK_1MHZ 0x10830F28 // Fast mode Plus with Rise Time = 60ns and Fall Time = 100ns
3232
#define I2C_PCLK_160M 160000000 // 160 MHz
3333

3434
/* Define IP version */

0 commit comments

Comments
 (0)