Only use prescaler 0 in order to workaround errata 6070 for mask 2N97F - a silicon bug causing I2C to misbehave upon repeated starts.

This commit is contained in:
László Monda
2017-07-10 00:14:48 +02:00
parent f0add9def0
commit c02d0df05b

View File

@@ -580,7 +580,7 @@ void I2C_MasterSetBaudRate(I2C_Type *base, uint32_t baudRate_Bps, uint32_t srcCl
/* Search for the settings with the lowest error. Mult is the MULT field of the I2C_F register,
* and ranges from 0-2. It selects the multiplier factor for the divider. */
for (mult = 0u; (mult <= 2u) && (bestError != 0); ++mult)
for (mult = 0u; (mult <= 0u) && (bestError != 0); ++mult)
{
multiplier = 1u << mult;