Added spacing back
This commit is contained in:
parent
aa6968dcd5
commit
052b45db0a
@ -935,6 +935,7 @@ static void stm32_i2c_tracedump(FAR struct stm32_i2c_priv_s *priv)
|
||||
* Set the I2C clock
|
||||
*
|
||||
************************************************************************************/
|
||||
|
||||
static void stm32_i2c_setclock(FAR struct stm32_i2c_priv_s *priv, uint32_t frequency)
|
||||
{
|
||||
uint16_t cr1;
|
||||
@ -1553,6 +1554,7 @@ static int stm32_i2c_init(FAR struct stm32_i2c_priv_s *priv)
|
||||
/* Set peripheral frequency, where it must be at least 2 MHz for 100 kHz
|
||||
* or 4 MHz for 400 kHz. This also disables all I2C interrupts.
|
||||
*/
|
||||
|
||||
stm32_i2c_putreg(priv, STM32_I2C_CR2_OFFSET, (STM32_PCLK1_FREQUENCY / 1000000));
|
||||
|
||||
/* Force a frequency update */
|
||||
|
Loading…
Reference in New Issue
Block a user