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:
ARMmbed/mbed-os#14732

Signed-off-by: Affrin Pinhero <affrin.pinhero@hcl.com>
pull/14776/head
Affrin Pinhero 2021-06-15 15:08:24 +05:30
parent 045c48db3e
commit ef5ac45192
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ extern "C" {
#define TIMING_VAL_DEFAULT_CLK_100KHZ 0xC0311319 // Standard mode with Rise Time = 400ns and Fall Time = 100ns
#define TIMING_VAL_DEFAULT_CLK_400KHZ 0x10B1102E // Fast mode with Rise Time = 250ns and Fall Time = 100ns
#define TIMING_VAL_DEFAULT_CLK_1MHZ 0x00710B1E // Fast mode Plus with Rise Time = 60ns and Fall Time = 100ns
#define I2C_PCLK_DEF 170000000 // 170 MHz
#define I2C_PCLK_DEF 160000000 // 160 MHz
/* Define IP version */
#define I2C_IP_VERSION_V2