|
|
@@ -197,11 +197,11 @@ int handleMasterXferState(LPC_I2C_T *pI2C, I2C_XFER_T *xfer)
|
|
|
/* Rx handling */
|
|
|
case 0x58: /* Data Received and NACK sent */
|
|
|
cclr &= ~I2C_CON_STO;
|
|
|
-
|
|
|
+ /* FALLTHRU */
|
|
|
case 0x50: /* Data Received and ACK sent */
|
|
|
*xfer->rxBuff++ = pI2C->DAT;
|
|
|
xfer->rxSz--;
|
|
|
-
|
|
|
+ /* FALLTHRU */
|
|
|
case 0x40: /* SLA+R sent and ACK received */
|
|
|
if (xfer->rxSz > 1) {
|
|
|
cclr &= ~I2C_CON_AA;
|
|
|
@@ -292,7 +292,7 @@ int handleSlaveXferState(LPC_I2C_T *pI2C, I2C_XFER_T *xfer)
|
|
|
case 0xA8: /* SLA+R received */
|
|
|
case 0xB0: /* SLA+R received after losing arbitration */
|
|
|
xfer->slaveAddr = pI2C->DAT & ~1;
|
|
|
-
|
|
|
+ /* FALLTHRU */
|
|
|
case 0xB8: /* DATA sent and ACK received */
|
|
|
pI2C->DAT = *xfer->txBuff++;
|
|
|
xfer->txSz--;
|