added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
Diff: targets/hal/TARGET_Freescale/TARGET_K20XX/i2c_api.c
- Revision:
- 31:1720eef440d8
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_Freescale/TARGET_K20XX/i2c_api.c Thu Nov 26 13:30:11 2015 +0000 +++ b/targets/hal/TARGET_Freescale/TARGET_K20XX/i2c_api.c Tue Dec 01 09:00:10 2015 +0000 @@ -85,13 +85,7 @@ volatile uint32_t n = 0; obj->i2c->C1 &= ~I2C_C1_MST_MASK; obj->i2c->C1 &= ~I2C_C1_TX_MASK; - - // It seems that there are timing problems - // when there is no waiting time after a STOP. - // This wait is also included on the samples - // code provided with the freedom board - for (n = 0; n < 100; n++) - __NOP(); + while(obj->i2c->S & I2C_S_BUSY_MASK); return 0; }