Skip to content

Commit d58616d

Browse files
committed
K82F, KL82Z: Fix the I2C SDK driver slave transfer
In case of slave transfer we dont want the slave to perform stop signal. Signed-off-by: Bielik <[email protected]>
1 parent 11418a2 commit d58616d

File tree

1 file changed

+1
-1
lines changed
  • targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers

1 file changed

+1
-1
lines changed

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/drivers/fsl_i2c.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@ status_t I2C_SlaveWriteBlocking(I2C_Type *base, const uint8_t *txBuff, size_t tx
13271327
/* Read dummy to release bus. */
13281328
dummy = base->D;
13291329

1330-
result = I2C_MasterWriteBlocking(base, txBuff, txSize, kI2C_TransferDefaultFlag);
1330+
result = I2C_MasterWriteBlocking(base, txBuff, txSize, kI2C_TransferNoStopFlag);
13311331

13321332
/* Switch to receive mode. */
13331333
base->C1 &= ~(I2C_C1_TX_MASK | I2C_C1_TXAK_MASK);

0 commit comments

Comments
 (0)