summaryrefslogtreecommitdiffstats
path: root/Linux_x86
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-06-09 11:56:37 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-06-09 11:56:37 -0700
commitd66c8b1a1229874700976e4d1c583519ec58fa45 (patch)
tree0d27fa29891fbea7331bb4b1d747cd5a11979b54 /Linux_x86
parent5a84ba3c21d1df214e8e95beee95ba5dbc4449f5 (diff)
parent252aedb3edd2c04adedeb5c9f8369af504411dad (diff)
downloadexternal_libnfc-nxp-d66c8b1a1229874700976e4d1c583519ec58fa45.zip
external_libnfc-nxp-d66c8b1a1229874700976e4d1c583519ec58fa45.tar.gz
external_libnfc-nxp-d66c8b1a1229874700976e4d1c583519ec58fa45.tar.bz2
am 252aedb3: am 6a7a2870: am 99141cdd: Sleep 500us between i2c writes, as per latest advice from NXP.
* commit '252aedb3edd2c04adedeb5c9f8369af504411dad': Sleep 500us between i2c writes, as per latest advice from NXP.
Diffstat (limited to 'Linux_x86')
-rw-r--r--Linux_x86/phDal4Nfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Linux_x86/phDal4Nfc.c b/Linux_x86/phDal4Nfc.c
index 2428f6c..87def2b 100644
--- a/Linux_x86/phDal4Nfc.c
+++ b/Linux_x86/phDal4Nfc.c
@@ -881,6 +881,7 @@ void phDal4Nfc_DeferredCb (void *params)
/* DAL_DEBUG("dalMsg->transactInfo.length : %d\n", dalMsg->transactInfo.length); */
/* Make a Physical WRITE */
/* NOTE: need to usleep(3000) here if the write is for SWP */
+ usleep(500); /* NXP advise 500us sleep required between I2C writes */
gReadWriteContext.nNbOfBytesWritten = gLinkFunc.write(gReadWriteContext.pWriteBuffer, gReadWriteContext.nNbOfBytesToWrite);
if (gReadWriteContext.nNbOfBytesWritten != gReadWriteContext.nNbOfBytesToWrite)
{