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-src by
Diff: targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c
- Revision:
- 142:7f2b6c44bbe3
- Parent:
- 130:1dec54e4aec3
- Child:
- 227:7bd0639b8911
diff -r 706f8dea204a -r 7f2b6c44bbe3 targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c
--- a/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c Tue Apr 01 16:45:06 2014 +0100
+++ b/targets/hal/TARGET_STM/TARGET_DISCO_F051R8/i2c_api.c Tue Apr 01 17:00:08 2014 +0100
@@ -86,7 +86,7 @@
void i2c_frequency(i2c_t *obj, int hz) {
I2C_TypeDef *i2c = (I2C_TypeDef *)(obj->i2c);
I2C_InitTypeDef I2C_InitStructure;
- uint32_t tim;
+ uint32_t tim = 0;
// Values calculated with I2C_Timing_Configuration_V1.0.1.xls file (see AN4235)
// with Rise time = 100ns and Fall time = 10ns
