helpfor studient
Dependents: STM32_F103-C8T6basecanblink_led
Fork of mbed-dev by
Diff: targets/TARGET_Maxim/TARGET_MAX32625/i2c_api.c
- Revision:
- 183:a56a73fd2a6f
- Parent:
- 150:02e0a0aed4ec
--- a/targets/TARGET_Maxim/TARGET_MAX32625/i2c_api.c Fri Feb 16 16:09:33 2018 +0000 +++ b/targets/TARGET_Maxim/TARGET_MAX32625/i2c_api.c Tue Mar 20 16:56:18 2018 +0000 @@ -101,7 +101,6 @@ //****************************************************************************** int i2c_read(i2c_t *obj, int address, char *data, int length, int stop) { - MBED_ASSERT(stop != 0); return I2CM_Read(obj->i2c, address >> 1, NULL, 0, (uint8_t *)data, length); } @@ -147,11 +146,6 @@ if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_RXDATA_NACK) != E_NO_ERROR) { goto byte_write_err; } - - // Send the stop condition - if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_STOP) != E_NO_ERROR) { - goto byte_write_err; - } } else { if (I2CM_WriteTxFifo(i2cm, fifo, MXC_S_I2CM_TRANS_TAG_RXDATA_COUNT) != E_NO_ERROR) { goto byte_write_err;