[NUCLEO_F302R8] Typo corrections (astyle)

pull/697/head
bcostm 2014-11-13 16:43:09 +01:00
parent 285977d068
commit 2fb9552913
4 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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:

View File

@ -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);
}

View File

@ -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()