Skip to content

Commit ef5ac45

Browse files
driver/i2c: STM32: I2C Read Write Take long time
Modified i2c_device.h file. This will solve I2C read write long time issue. Updated default I2C peripheral clock value to 160MHz. fix: #14732 Signed-off-by: Affrin Pinhero <[email protected]>
1 parent 045c48d commit ef5ac45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

targets/TARGET_STM/TARGET_STM32G4/i2c_device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ extern "C" {
2929
#define TIMING_VAL_DEFAULT_CLK_100KHZ 0xC0311319 // Standard mode with Rise Time = 400ns and Fall Time = 100ns
3030
#define TIMING_VAL_DEFAULT_CLK_400KHZ 0x10B1102E // Fast mode with Rise Time = 250ns and Fall Time = 100ns
3131
#define TIMING_VAL_DEFAULT_CLK_1MHZ 0x00710B1E // Fast mode Plus with Rise Time = 60ns and Fall Time = 100ns
32-
#define I2C_PCLK_DEF 170000000 // 170 MHz
32+
#define I2C_PCLK_DEF 160000000 // 160 MHz
3333

3434
/* Define IP version */
3535
#define I2C_IP_VERSION_V2

0 commit comments

Comments
 (0)