mirror of https://github.com/ARMmbed/mbed-os.git
[NUCLEO_F302R8] Typo corrections (astyle)
parent
285977d068
commit
2fb9552913
|
@ -127,7 +127,7 @@ void i2c_frequency(i2c_t *obj, int hz)
|
|||
|
||||
// wait before init
|
||||
timeout = LONG_TIMEOUT;
|
||||
while((__HAL_I2C_GET_FLAG(&I2cHandle, I2C_FLAG_BUSY)) && (timeout-- != 0));
|
||||
while ((__HAL_I2C_GET_FLAG(&I2cHandle, I2C_FLAG_BUSY)) && (timeout-- != 0));
|
||||
|
||||
// Update the SystemCoreClock variable.
|
||||
SystemCoreClockUpdate();
|
||||
|
@ -362,7 +362,7 @@ void i2c_reset(i2c_t *obj)
|
|||
|
||||
// wait before reset
|
||||
timeout = LONG_TIMEOUT;
|
||||
while((__HAL_I2C_GET_FLAG(&I2cHandle, I2C_FLAG_BUSY)) && (timeout-- != 0));
|
||||
while ((__HAL_I2C_GET_FLAG(&I2cHandle, I2C_FLAG_BUSY)) && (timeout-- != 0));
|
||||
|
||||
__I2C1_FORCE_RESET();
|
||||
__I2C1_RELEASE_RESET();
|
||||
|
|
Loading…
Reference in New Issue