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:
@@ -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,
|
/* 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. */
|
* 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;
|
multiplier = 1u << mult;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user