[stm32-common-i2c] Style fix.
This commit is contained in:
parent
b58ac190bb
commit
8591a5aa20
@ -52,21 +52,21 @@ the reset condition. The reset is effected via the RCC peripheral reset system.
|
|||||||
void i2c_reset(uint32_t i2c)
|
void i2c_reset(uint32_t i2c)
|
||||||
{
|
{
|
||||||
switch (i2c) {
|
switch (i2c) {
|
||||||
case I2C1:
|
case I2C1:
|
||||||
rcc_periph_reset_pulse(RST_I2C1);
|
rcc_periph_reset_pulse(RST_I2C1);
|
||||||
break;
|
break;
|
||||||
#if defined(I2C2_BASE)
|
#if defined(I2C2_BASE)
|
||||||
case I2C2:
|
case I2C2:
|
||||||
rcc_periph_reset_pulse(RST_I2C2);
|
rcc_periph_reset_pulse(RST_I2C2);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
#if defined(I2C3_BASE)
|
#if defined(I2C3_BASE)
|
||||||
case I2C3:
|
case I2C3:
|
||||||
rcc_periph_reset_pulse(RST_I2C3);
|
rcc_periph_reset_pulse(RST_I2C3);
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user