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();
|
||||
|
@ -359,10 +359,10 @@ int i2c_byte_write(i2c_t *obj, int data)
|
|||
void i2c_reset(i2c_t *obj)
|
||||
{
|
||||
int timeout;
|
||||
|
||||
|
||||
// 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();
|
||||
|
|
|
@ -187,7 +187,7 @@ void pwmout_write(pwmout_t* obj, float value)
|
|||
channel = TIM_CHANNEL_2;
|
||||
complementary_channel = 1;
|
||||
break;
|
||||
|
||||
|
||||
// Channels 3
|
||||
case PA_10:
|
||||
case PC_2:
|
||||
|
|
|
@ -94,7 +94,7 @@ static void init_uart(serial_t *obj)
|
|||
// Disable the reception overrun detection
|
||||
UartHandle.AdvancedInit.AdvFeatureInit = UART_ADVFEATURE_RXOVERRUNDISABLE_INIT;
|
||||
UartHandle.AdvancedInit.OverrunDisable = UART_ADVFEATURE_OVERRUN_DISABLE;
|
||||
|
||||
|
||||
HAL_UART_Init(&UartHandle);
|
||||
}
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ void us_ticker_init(void)
|
|||
|
||||
TimMasterHandle.Instance = TIM_MST;
|
||||
|
||||
HAL_InitTick(0); // The passed value is not used
|
||||
HAL_InitTick(0); // The passed value is not used
|
||||
}
|
||||
|
||||
uint32_t us_ticker_read()
|
||||
|
|
Loading…
Reference in New Issue