summaryrefslogtreecommitdiffstats
path: root/Linux_x86/phDal4Nfc_uart.c
diff options
context:
space:
mode:
authorJeff Hamilton <jham@android.com>2010-10-27 21:29:08 -0500
committerJeff Hamilton <jham@android.com>2010-10-28 02:02:26 -0500
commit3e98767aaf73b4779a2bb39601806045b2ba1739 (patch)
tree6906ecae34f195da704264a2fc25dfd4ab9eb1d4 /Linux_x86/phDal4Nfc_uart.c
parent8763a1998eee9b43169bf0824a77b00b3b88a938 (diff)
downloadexternal_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.zip
external_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.tar.gz
external_libnfc-nxp-3e98767aaf73b4779a2bb39601806045b2ba1739.tar.bz2
Patch from NXP. Libnfc - Download,Reset mode management and driver workaround with delay
Change-Id: I736e5f50db749c9570b24194fe3963efbacc5c52
Diffstat (limited to 'Linux_x86/phDal4Nfc_uart.c')
-rw-r--r--Linux_x86/phDal4Nfc_uart.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/Linux_x86/phDal4Nfc_uart.c b/Linux_x86/phDal4Nfc_uart.c
index 9d230f1..30cb500 100644
--- a/Linux_x86/phDal4Nfc_uart.c
+++ b/Linux_x86/phDal4Nfc_uart.c
@@ -324,3 +324,32 @@ int phDal4Nfc_uart_write(uint8_t * pBuffer, int nNbBytesToWrite)
return 0;
}
+
+/*-----------------------------------------------------------------------------
+
+FUNCTION: phDal4Nfc_uart_reset
+
+PURPOSE: Reset the PN544, using the VEN pin
+
+-----------------------------------------------------------------------------*/
+int phDal4Nfc_uart_reset()
+{
+ DAL_PRINT("phDal4Nfc_uart_reset");
+
+ return NFCSTATUS_FEATURE_NOT_SUPPORTED;
+}
+
+/*-----------------------------------------------------------------------------
+
+FUNCTION: phDal4Nfc_uart_write
+
+PURPOSE: Put the PN544 in download mode, using the GPIO4 pin
+
+-----------------------------------------------------------------------------*/
+int phDal4Nfc_uart_download()
+{
+ DAL_PRINT("phDal4Nfc_uart_download");
+
+ return NFCSTATUS_FEATURE_NOT_SUPPORTED;
+}
+