fixed FMPI2C1 typo

pull/1412/head
Wojciech Gorniak 2015-11-06 13:14:31 +01:00
parent d95dfe3edc
commit 355e2ea0fb
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl)
#if (defined(FMPI2C1_BASE) && defined(FMPI2C1)) #if (defined(FMPI2C1_BASE) && defined(FMPI2C1))
// Enable I2C3 clock and pinout if not done // Enable I2C3 clock and pinout if not done
if ((obj->i2c == FMPI2C_1) && !fmpi2c1_inited) { if ((obj->i2c == FMPI2C1) && !fmpi2c1_inited) {
fmpi2c1_inited = 1; fmpi2c1_inited = 1;
__HAL_RCC_FMPI2C1_CLK_ENABLE(); __HAL_RCC_FMPI2C1_CLK_ENABLE();
// Configure I2C pins // Configure I2C pins
@ -339,7 +339,7 @@ void i2c_reset(i2c_t *obj)
#endif #endif
#if (defined(FMPI2C1_BASE) && defined(FMPI2C1)) #if (defined(FMPI2C1_BASE) && defined(FMPI2C1))
if (obj->i2c == FMPI2C_1) { if (obj->i2c == FMPI2C1) {
__HAL_RCC_FMPI2C1_FORCE_RESET(); __HAL_RCC_FMPI2C1_FORCE_RESET();
__HAL_RCC_FMPI2C1_RELEASE_RESET(); __HAL_RCC_FMPI2C1_RELEASE_RESET();
} }