mbed
Fork of mbed-dev by
Diff: targets/TARGET_STM/i2c_api.c
- Revision:
- 165:e614a9f1c9e2
- Parent:
- 162:e13f6fdb2ac4
- Child:
- 171:19eb464bc2be
diff -r 289d4deac6e4 -r e614a9f1c9e2 targets/TARGET_STM/i2c_api.c --- a/targets/TARGET_STM/i2c_api.c Wed May 10 12:06:41 2017 +0100 +++ b/targets/TARGET_STM/i2c_api.c Fri May 26 12:39:01 2017 +0100 @@ -436,9 +436,9 @@ // I2C configuration handle->Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT; - handle->Init.DualAddressMode = I2C_DUALADDRESS_DISABLED; - handle->Init.GeneralCallMode = I2C_GENERALCALL_DISABLED; - handle->Init.NoStretchMode = I2C_NOSTRETCH_DISABLED; + handle->Init.DualAddressMode = I2C_DUALADDRESS_DISABLE; + handle->Init.GeneralCallMode = I2C_GENERALCALL_DISABLE; + handle->Init.NoStretchMode = I2C_NOSTRETCH_DISABLE; handle->Init.OwnAddress1 = 0; handle->Init.OwnAddress2 = 0; HAL_I2C_Init(handle);