Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of mbed-dev by
Diff: targets/hal/TARGET_STM/TARGET_STM32F7/i2c_api.c
- Revision:
- 74:9322579e4309
- Parent:
- 34:bb6061527455
- Child:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_STM/TARGET_STM32F7/i2c_api.c Fri Feb 26 07:45:09 2016 +0000 +++ b/targets/hal/TARGET_STM/TARGET_STM32F7/i2c_api.c Fri Feb 26 11:45:10 2016 +0000 @@ -46,11 +46,10 @@ I2C_HandleTypeDef I2cHandle; int i2c1_inited = 0; -/* Ready for next F7 devices int i2c2_inited = 0; int i2c3_inited = 0; int i2c4_inited = 0; -*/ + void i2c_init(i2c_t *obj, PinName sda, PinName scl) { @@ -73,7 +72,6 @@ pin_mode(scl, OpenDrain); } - /* Ready for next F7 devices #if defined(I2C2_BASE) if ((obj->i2c == I2C_2) && !i2c2_inited) { i2c2_inited = 1; @@ -112,7 +110,6 @@ pin_mode(scl, OpenDrain); } #endif - */ // Reset to clear pending flags if any i2c_reset(obj);