diff options
author | Daniel Tomas <daniel.tomas@trusted-logic.com> | 2010-11-03 20:23:31 +0100 |
---|---|---|
committer | Nick Pelly <npelly@google.com> | 2010-11-03 15:15:19 -0500 |
commit | bad5c194e18faa70ceb9608019d3c2cfa0d4f10c (patch) | |
tree | 210afe2b4a84c886fba34e43fd0e3bd0bd09cd49 /src | |
parent | 52ffcd90d9da60151c4343bc25f272da65cf6b98 (diff) | |
download | external_libnfc-nxp-bad5c194e18faa70ceb9608019d3c2cfa0d4f10c.zip external_libnfc-nxp-bad5c194e18faa70ceb9608019d3c2cfa0d4f10c.tar.gz external_libnfc-nxp-bad5c194e18faa70ceb9608019d3c2cfa0d4f10c.tar.bz2 |
HCI timer enabled to HW reset NFC when HCI command times out.
Change-Id: Iee39957227fcdc8e97b520d22032dc97915323f3
Signed-off-by: Nick Pelly <npelly@google.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/phHciNfc_Generic.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/phHciNfc_Generic.c b/src/phHciNfc_Generic.c index db78725..4433344 100644 --- a/src/phHciNfc_Generic.c +++ b/src/phHciNfc_Generic.c @@ -66,13 +66,7 @@ #if (NXP_NFC_HCI_TIMER == 1) -#define HCI_RES_DEFAULT_TO 0x5000 - -#if ((NXP_NFC_HCI_TIMEOUT) < (HCI_RES_DEFAULT_TO)) -#define NXP_HCI_RESPONSE_TIMEOUT (HCI_RES_DEFAULT_TO) -#else #define NXP_HCI_RESPONSE_TIMEOUT (NXP_NFC_HCI_TIMEOUT) -#endif #include <phOsalNfc_Timer.h> /** \internal HCI Response Timer to detect the @@ -83,11 +77,6 @@ static phHciNfc_sContext_t *gpsHciContext= NULL; #endif /* (NXP_NFC_HCI_TIMER == 1) */ - - - - - /* ################################################################################ ************************* Function Prototype Declaration *********************** @@ -99,7 +88,7 @@ static phHciNfc_sContext_t *gpsHciContext= NULL; static void phHciNfc_Response_Timeout ( - uint32_t resp_timer_id + uint32_t resp_timer_id ); #endif /* (NXP_NFC_HCI_TIMER == 1) */ @@ -588,7 +577,7 @@ phHciNfc_Release_Lower( { /* Start the HCI Response Timer */ phOsalNfc_Timer_Start( hci_resp_timer_id, - NXP_HCI_RESPONSE_TIMEOUT, phHciNfc_Response_Timeout ); + NXP_HCI_RESPONSE_TIMEOUT, phHciNfc_Response_Timeout, NULL); HCI_DEBUG(" HCI : Timer %X Started \n", hci_resp_timer_id); } |