summaryrefslogtreecommitdiffstats
path: root/Linux_x86/phDal4Nfc.c
diff options
context:
space:
mode:
authorNick Pelly <npelly@google.com>2011-06-08 14:15:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-06-08 14:15:17 -0700
commit252aedb3edd2c04adedeb5c9f8369af504411dad (patch)
tree13901041fadf78d31d37359f5429bcc1465c2ef9 /Linux_x86/phDal4Nfc.c
parent055a5f9542ba8fcfd2972111b707049732255ebe (diff)
parent6a7a2870596a7b82ed4a7720a13e1d02db7eb3cf (diff)
downloadexternal_libnfc-nxp-252aedb3edd2c04adedeb5c9f8369af504411dad.zip
external_libnfc-nxp-252aedb3edd2c04adedeb5c9f8369af504411dad.tar.gz
external_libnfc-nxp-252aedb3edd2c04adedeb5c9f8369af504411dad.tar.bz2
am 6a7a2870: am 99141cdd: Sleep 500us between i2c writes, as per latest advice from NXP.
* commit '6a7a2870596a7b82ed4a7720a13e1d02db7eb3cf': Sleep 500us between i2c writes, as per latest advice from NXP.
Diffstat (limited to 'Linux_x86/phDal4Nfc.c')
-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 a8803e2..6d3c9fb 100644
--- a/Linux_x86/phDal4Nfc.c
+++ b/Linux_x86/phDal4Nfc.c
@@ -858,6 +858,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)
{