mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Diff: targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/i2c_api.c
- Revision:
- 162:937d965048d3
- Parent:
- 135:067cc8ba23da
- Child:
- 197:36a724675865
--- a/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/i2c_api.c Tue Apr 22 10:00:06 2014 +0100 +++ b/targets/hal/TARGET_STM/TARGET_NUCLEO_F302R8/i2c_api.c Tue Apr 22 13:30:06 2014 +0100 @@ -100,7 +100,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; // Disable the Fast Mode Plus capability RCC_APB2PeriphClockCmd(RCC_APB2Periph_SYSCFG, ENABLE); // Enable SYSCFG clock