mirror of https://github.com/ARMmbed/mbed-os.git
fixed FMPI2C1 typo
parent
d95dfe3edc
commit
355e2ea0fb
|
@ -93,7 +93,7 @@ void i2c_init(i2c_t *obj, PinName sda, PinName scl)
|
|||
|
||||
#if (defined(FMPI2C1_BASE) && defined(FMPI2C1))
|
||||
// Enable I2C3 clock and pinout if not done
|
||||
if ((obj->i2c == FMPI2C_1) && !fmpi2c1_inited) {
|
||||
if ((obj->i2c == FMPI2C1) && !fmpi2c1_inited) {
|
||||
fmpi2c1_inited = 1;
|
||||
__HAL_RCC_FMPI2C1_CLK_ENABLE();
|
||||
// Configure I2C pins
|
||||
|
@ -339,7 +339,7 @@ void i2c_reset(i2c_t *obj)
|
|||
#endif
|
||||
|
||||
#if (defined(FMPI2C1_BASE) && defined(FMPI2C1))
|
||||
if (obj->i2c == FMPI2C_1) {
|
||||
if (obj->i2c == FMPI2C1) {
|
||||
__HAL_RCC_FMPI2C1_FORCE_RESET();
|
||||
__HAL_RCC_FMPI2C1_RELEASE_RESET();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue