diff options
author | Martijn Coenen <martijn.coenen@nxp.com> | 2011-01-12 20:44:37 +0100 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2011-01-18 11:14:26 -0800 |
commit | 72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7 (patch) | |
tree | 2611ea663501b02ac6b28662b0dff692b9c99b84 /src/phHciNfc_RFReader.c | |
parent | 434eb43979d170509b9b28c0598e5f44e31aa348 (diff) | |
download | libnfc-nxp-72854a2c28b99f9ab6aa60c906d5b3c1a36b04d7.tar.gz |
Implement IsoDep timeout handling (libNFC).
Made the ISO XCHG timer (used for IsoDep transceive's) a configurable
setting. When this timer triggers in the hardware, the transaction will be
aborted and the connection to the tag is broken.
Also made the HCI timer configurable. This timer serves as a software watchdog
for any HCI transaction.
Change-Id: I927c7755378f793899c6d262a2f23ab5dca3817b
Diffstat (limited to 'src/phHciNfc_RFReader.c')
-rw-r--r-- | src/phHciNfc_RFReader.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/phHciNfc_RFReader.c b/src/phHciNfc_RFReader.c index 6f53f74..1ecba87 100644 --- a/src/phHciNfc_RFReader.c +++ b/src/phHciNfc_RFReader.c @@ -63,6 +63,7 @@ #define NFCIP_ACTIVATE_DELAY 0x05U +uint8_t nxp_nfc_isoxchg_timeout = NXP_ISO_XCHG_TIMEOUT; /* *************************** Structure and Enumeration *************************** */ @@ -2328,7 +2329,7 @@ phHciNfc_ReaderMgmt_Release( (uint8_t) pipe_id, HCP_MSG_TYPE_COMMAND, cmd); hcp_message = &(hcp_packet->msg.message); /* Frame Wait Timeout */ - hcp_message->payload[i++] = NXP_ISO_XCHG_TIMEOUT ; + hcp_message->payload[i++] = nxp_nfc_isoxchg_timeout ; phHciNfc_Append_HCPFrame((uint8_t *)hcp_message->payload, i, p_pipe_info->param_info, p_pipe_info->param_length); |