summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDaniel TOMAS <dtomas.nxp@gmail.com>2011-09-09 12:06:08 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2011-09-09 12:06:08 -0700
commitdd163fe4ad38d2064de2913697907e45229a8dce (patch)
tree051e3869f4e125f85eb10adaae8ec646128b7b6c /src
parentaf5fad81280c9003cec49870a23e8f002b2a0d46 (diff)
parentdf82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0 (diff)
downloadexternal_libnfc-nxp-dd163fe4ad38d2064de2913697907e45229a8dce.zip
external_libnfc-nxp-dd163fe4ad38d2064de2913697907e45229a8dce.tar.gz
external_libnfc-nxp-dd163fe4ad38d2064de2913697907e45229a8dce.tar.bz2
am df82c4dd: Patch to add an API to load a FW image in the libnfc
* commit 'df82c4dd7c6d5ad232b5628edf73aa9ea3f8c2c0': Patch to add an API to load a FW image in the libnfc
Diffstat (limited to 'src')
-rw-r--r--src/phLibNfc.c10
-rw-r--r--src/phLibNfc.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/src/phLibNfc.c b/src/phLibNfc.c
index 71225ba..fa28bf5 100644
--- a/src/phLibNfc.c
+++ b/src/phLibNfc.c
@@ -45,6 +45,8 @@
*************************** Macro's ******************************************
*/
+extern int dlopen_firmware();
+
#ifndef STATIC_DISABLE
#define STATIC static
#else
@@ -106,6 +108,7 @@ NFCSTATUS phLibNfc_HW_Reset ()
{
NFCSTATUS Status = NFCSTATUS_SUCCESS;
+ Status = phDal4Nfc_Reset(1);
Status = phDal4Nfc_Reset(0);
Status = phDal4Nfc_Reset(1);
@@ -117,6 +120,13 @@ NFCSTATUS phLibNfc_Download_Mode ()
return phDal4Nfc_Download();
}
+int phLibNfc_Load_Firmware_Image ()
+{
+ int status;
+ status = dlopen_firmware();
+ return status;
+}
+
extern uint8_t nxp_nfc_isoxchg_timeout;
NFCSTATUS phLibNfc_SetIsoXchgTimeout(uint8_t timeout) {
diff --git a/src/phLibNfc.h b/src/phLibNfc.h
index 790d619..719cfc1 100644
--- a/src/phLibNfc.h
+++ b/src/phLibNfc.h
@@ -851,6 +851,8 @@ NFCSTATUS phLibNfc_HW_Reset ();
NFCSTATUS phLibNfc_Download_Mode ();
+int phLibNfc_Load_Firmware_Image ();
+
// timeout is 8 bits
// bits [0..3] => timeout value, (256*16/13.56*10^6) * 2^value
// [0] -> 0.0003s