15d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 25d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Copyright (C) 2010 NXP Semiconductors 35d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 45d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Licensed under the Apache License, Version 2.0 (the "License"); 55d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * you may not use this file except in compliance with the License. 65d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * You may obtain a copy of the License at 75d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 85d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * http://www.apache.org/licenses/LICENSE-2.0 95d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Unless required by applicable law or agreed to in writing, software 115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * distributed under the License is distributed on an "AS IS" BASIS, 125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * See the License for the specific language governing permissions and 145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * limitations under the License. 155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \file phNfcConfig.h 205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \brief HAL Configurations 215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \note This is the configuration header file of the HAL 4.0.All configurable parameters of the HAL 4.0 245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* are provided in this file 255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* Project: NFC-FRI-1.1 / HAL4.0 275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 28b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas* $Date: Thu Sep 9 14:56:35 2010 $ 295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* $Author: ing04880 $ 30b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas* $Revision: 1.39 $ 31b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas* $Aliases: $ 325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@{*/ 375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef PHNFC_CONFIG_H 385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PHNFC_CONFIG_H 395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/ 405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** 435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* \name Hal 445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* File: \ref phNfcConfig.h 465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly* 475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly*/ 485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@{*/ 50b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#define PH_NFC_CONFIG_FILEREVISION "$Revision: 1.39 $" /**< \ingroup grp_file_attributes */ 51b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#define PH_NFC_CONFIG_FILEALIASES "$Aliases: $" /**< \ingroup grp_file_attributes */ 525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*@}*/ 535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* -----------------Include files ---------------------------------------*/ 565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifdef NFC_CUSTOM_CONFIG_INCLUDE 585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#include<nfc_custom_config.h> 595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* ---------------- Macros ----------------------------------------------*/ 625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ********************** DEFAULT MACROS ************************** 685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< External Clock Request Configuration for the NFC Device, 735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x00U No Clock Request, 745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01U Clock Request through CLKREQ pin (GPIO pin 2), 755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02U Clock Request through NXP_EVT_CLK_REQUEST Event, 765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_DEFAULT_CLK_REQUEST 785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_DEFAULT_CLK_REQUEST 0x00U 795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< External Input Clock Setting for the NFC Device, 825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x00U No Input Clock Required (Use the Xtal), 835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01U 13 MHZ, 845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02U 19.2 MHZ, 855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x03U 26 MHZ, 865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x04U 38.4 MHZ, 875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x05U Custom (Set the Custome Clock Registry), 885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_DEFAULT_INPUT_CLK 915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_DEFAULT_INPUT_CLK 0x00U 925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< UICC Power Request configuration for the NFC Device, 955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x00U No Power Request, 965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01U Power Request through CLKREQ pin (GPIO pin 2), 975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02U Power Request through PWR_REQUEST (GPIO Pin 3), 985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_UICC_PWR_REQUEST 1015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_UICC_PWR_REQUEST 0x00U 1025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< TX LDO Configuration 1055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x00 00b 3.0 V, 1065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01 01b 3.0 V, 1075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02 10b 2.7 V, 1085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x03 11b 3.3 V, 1095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 1105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_DEFAULT_TX_LDO 1125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_DEFAULT_TX_LDO 0x00U 1135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< UICC Bit Rate Configuration 1165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02 212Kbits/Sec 1175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x04 424Kbits/Sec 1185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x08 828Kbits/Sec 1195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 1205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_UICC_BIT_RATE 1225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_UICC_BIT_RATE 0x08U 1235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Indicates PN544 Power Modes Configuration for the NFC Device, 1275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x00U -> PN544 stays in active bat mode 1285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly (except when generating RF field) 1295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01U -> PN544 goes in standby when possible otherwise 1305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly stays in active bat mode 1315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02U -> PN544 goes in idle mode as soon as it can 1325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly (otherwise it is in active bat except when generating RF field) 1335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x03U -> PN544 goes in standby when possible otherwise goes in idle mode 1345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly as soon as it can (otherwise it is in active bat except when 1355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly generating RF field) 1365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 1375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_SYSTEM_PWR_STATUS 1390fb8aa8edcde194a1ac5e6116a6ce7ee374122b6goodsc.lee#define NXP_SYSTEM_PWR_STATUS 0x01U 1405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Default Session ID for Initialisation */ 1435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef DEFAULT_SESSION 1444be773cac714184b24bc9d4191b778efefe16472Nick Pelly#define DEFAULT_SESSION "android8" 1455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* The Other Integration Configuration Values */ 1495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Max number of remote devices supported */ 1515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef MAX_REMOTE_DEVICES 1535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define MAX_REMOTE_DEVICES 0x0A 1545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< System Event Notification 1575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01 Overcurrent 1585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02 PMUVCC Switch 1595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x04 External RF Field 1605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x08 Memory Violation 1615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x10 Temperature Overheat 1625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 1635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_SYSTEM_EVT_INFO 1655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_SYSTEM_EVT_INFO 0x3DU 1665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NFC_DEV_HWCONF_DEFAULT 1705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NFC_DEV_HWCONF_DEFAULT 0xBCU 1715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_ISO_XCHG_TIMEOUT 17531cfc51c6d32ae1a6acbacede3b749dacc6cc940Martijn Coenen#define NXP_ISO_XCHG_TIMEOUT 0x1BU 1765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_MIFARE_XCHG_TIMEOUT 17901a91eaddd15d39b85c9950eb88a1c6348290556Martijn Coenen#define NXP_MIFARE_XCHG_TIMEOUT 0x0BU 1805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_FELICA_XCHG_TIMEOUT 1835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_FELICA_XCHG_TIMEOUT 0xFFU 1845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFCIP_PSL_BRS_DEFAULT 1885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFCIP_PSL_BRS_DEFAULT 0x00U 1895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< ID For Invalid Timer */ 1945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_INVALID_TIMER_ID 1955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_INVALID_TIMER_ID 0xFFFFFFFFU 1965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 1975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Presence check interval in milliseconds */ 1995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef PRESENCE_CHECK_INTERVAL 2005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define PRESENCE_CHECK_INTERVAL 500U 2015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/** Resolution value for the timer, here the 2045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly timer resolution is 500 milliseconds */ 2055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef TIMER_RESOLUTION 2065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TIMER_RESOLUTION 500U 2075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Kindly note that the below Timeout values should be 2105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * in Multiples of the value provided to TIMER_RESOLUTION 2115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 2125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Defines guard time out value for LLC timer, 2145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1000 is in milliseconds */ 2155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef LINK_GUARD_TIMEOUT 2165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define LINK_GUARD_TIMEOUT 1000U 2175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Defines connection time out value for LLC timer, 2215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 1000 is in milliseconds */ 2225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef LINK_CONNECTION_TIMEOUT 2235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define LINK_CONNECTION_TIMEOUT 1000U 2245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 226b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas/**< Defines ACK time out value for LLC timer, 227b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas 150 is in milliseconds */ 228b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas#ifndef LINK_ACK_TIMEOUT 229b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas#define LINK_ACK_TIMEOUT 1U 230b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas#endif 231b313c3d09c64c31439332e88e0aca676ae1858b5Daniel Tomas 2325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Defines Firmware Download Completion Timeout value , 2345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 120000 is in milliseconds */ 2355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_DNLD_COMPLETE_TIMEOUT 238b13b27aa9bb96897e996cf89ed8412c46ef2cf07Nick Pelly#define NXP_DNLD_COMPLETE_TIMEOUT 60000U 2395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Define to configure the Active Mode Polling Guard Time-out 2435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 2445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef DEV_MGMT_ACT_GRD_TO_DEFAULT 2465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define DEV_MGMT_ACT_GRD_TO_DEFAULT 0x20U 2475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2494be773cac714184b24bc9d4191b778efefe16472Nick Pelly/**< NFCIP Active Mode Default Configuration (when acting as Target) 2505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x01 106 kbps 2515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x02 212 kbps 2525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 0x04 424 kbps 2535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 2545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFCIP_ACTIVE_DEFAULT 2565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFCIP_ACTIVE_DEFAULT 0x01U 2575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFC_HCI_TIMER 26334ff48f6cd6595a899e05fbd56f4c84891840d3fNick Pelly#define NXP_NFC_HCI_TIMER 1 264bad5c194e18faa70ceb9608019d3c2cfa0d4f10cDaniel Tomas#define NXP_NFC_HCI_TIMEOUT 6000 2655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 2695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 2705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly DO NOT MODIFY THE BELOW MACROS UNLESS OTHERWISE MENTIONED 2715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 2725d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 2735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef HOST_CE_A_SAK_DEFAULT 2775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HOST_CE_A_SAK_DEFAULT 0x20U 2785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_CE_A_ATQA_HIGH 2815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_CE_A_ATQA_HIGH 0x00U 2825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_CE_A_ATQA_LOW 2855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_CE_A_ATQA_LOW 0x04U 2865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_UICC_CE_RIGHTS 2905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_UICC_CE_RIGHTS 0x0FU 2915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_UICC_RD_RIGHTS 2945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_UICC_RD_RIGHTS 0x00U 2955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 2965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 2985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 2995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 3005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly DO NOT DISABLE/ENABLE BELOW MACROS UNLESS OTHERWISE MENTIONED 3015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 3025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 3035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define ES_HW_VER 32 3055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 3075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 3085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *************** FEATURE SPECIFIC MACROS ************************* 3095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 3105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 3115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable SMX Feature During 3155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Initialisation */ 3165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#if !defined(NXP_SMX) 31875b0473b9eedf7673ed4502978205f4fa5563357Daniel Tomas#define NXP_SMX 1 3195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 3205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#if (NXP_SMX == 1) 3225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_HAL_ENABLE_SMX 3235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 3245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Host Session 3265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Initialisation */ 3275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define ESTABLISH_SESSION 3285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Peer to Peer Feature */ 3305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define ENABLE_P2P 3315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3324be773cac714184b24bc9d4191b778efefe16472Nick Pelly#define DEFAULT_NFCIP_INITIATOR_MODE_SUPPORT 0x3FU 333277db7cff1fe2f36fbf90f29c6fb9d9e61ef17f3Nick Pelly#define DEFAULT_NFCIP_TARGET_MODE_SUPPORT 0x0FU 3345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the ISO14443-B Feature */ 3365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TYPE_B 3375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Felica Feature */ 3395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TYPE_FELICA 3405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the JEWEL Feature */ 3425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TYPE_JEWEL 3435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the ISO15693 Feature */ 3455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TYPE_ISO15693 3465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*< Macro to Verify the Poll Parameters Set */ 3485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define ENABLE_VERIFY_PARAM */ 3495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable ISO 18092 Protocol compliancy 3515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * SAK to be merged with the TYPE A Card RF Feature :3.1*/ 3525d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define TGT_MERGE_SAK 3535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Configure the default power status 3565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * to allow the PN544 to enter into the Standby */ 3575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define CFG_PWR_STATUS 3585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3595d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the SWP Protocol 3615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * to detect UICC During Initialisation */ 3625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define ENABLE_UICC 3635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the RAW Mode of Transaction 3655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * for the ISO-14443-3A Compliant Targets */ 3665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define ENABLE_MIFARE_RAW 3675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the HOST List 3695d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * to allow the UICC Communication */ 3705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HOST_WHITELIST 3715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 372d75796b759f9baac8facf22f1b6c6bcfbc51161eMartijn Coenen/**< Support reconnecting to a different handle on the same tag */ 373d75796b759f9baac8facf22f1b6c6bcfbc51161eMartijn Coenen#define RECONNECT_SUPPORT 3745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3755d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Card Emulation Feature */ 3765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define HOST_EMULATION */ 3775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3786dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren#define NXP_HAL_VERIFY_EEPROM_CRC 0x01U 3796dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren 3805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Download Mode Feature */ 3815e97605ca8d83414b122bae72e65ea388b66718adaniel_Tomas#define FW_DOWNLOAD 3825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Enable the Firmware Download Timer */ 3846dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren/* 0x01U to use overall timeout */ 3856dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren/* 0x02U to use per frame timeout */ 3866dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren#define FW_DOWNLOAD_TIMER 0x02U 3875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to Verify the Firmware Download */ 3895d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define FW_DOWNLOAD_VERIFY */ 3905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef FW_DOWNLOAD_VERIFY 3925e97605ca8d83414b122bae72e65ea388b66718adaniel_Tomas#define NXP_FW_INTEGRITY_CHK 1 3935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 3945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 3956dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren/* To specify the Maximum TX/RX Len */ 3966dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren#define NXP_FW_MAX_TX_RX_LEN 0x200 3976dd948323de0f31b413c9f19a905f1c145c9c456Rob von Behren 3985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define UICC_CONNECTIVITY_PATCH 3995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Work around to Delay the initiator activation */ 4015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define NXP_NFCIP_ACTIVATE_DELAY */ 4025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4035d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Work around to Release the Discovered Target */ 4045d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define SW_RELEASE_TARGET 4055d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Macro to Allow the HCI Release in any state */ 4075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_HCI_SHUTDOWN_OVERRIDE 4085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Macro to Enable The P2P Transaction Timers */ 4115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define P2P_TGT_TRANSACT_TIMER 4125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#if (ES_HW_VER == 32) 4145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Macro to Configure the Target Disable Register */ 4155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NFCIP_TGT_DISABLE_CFG 4165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*< Macro to Disable the Felica Mapping */ 4205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define DISABLE_FELICA_MAPPING */ 4215d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/*< Macro to Disable the Felica Mapping */ 4235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define DISABLE_JEWEL_MAPPING */ 4245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to enable LLC timer */ 4265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define LLC_TIMER_ENABLE 4275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Macro to enable HCI Response timer */ 429bad5c194e18faa70ceb9608019d3c2cfa0d4f10cDaniel Tomas#define NXP_NFC_HCI_TIMER 1 4305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* A Workaround to Delay and obtain the UICC Status Information */ 4325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define UICC_STATUS_DELAY */ 4335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifdef UICC_STATUS_DELAY 4355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define UICC_STATUS_DELAY_COUNT 0x00100000 4365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 438b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas/**< Macro to delay the LLC RESET response callback, 4395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly Value is in milli-seconds */ 4405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define LLC_RESET_DELAY 10 4415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 442b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas/* Macro to Enable the workaround for Tuning of 4435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * RF for TYPE B and F 4445d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 4455d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define SW_TYPE_RF_TUNING_BF */ 4465d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4475d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Workaround to update the Active Guard Timeout */ 4485d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define MAX_ACTIVATE_TIMEOUT */ 4495d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4505d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define ONE_BYTE_LEN */ 4515d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 452b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#define NFC_RF_NOISE_SW 4535d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4545d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**< Define to configure the PMOS Modulation Index value 4555d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 4565d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4575d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NFC_DEV_PMOS_MOD_DEFAULT 4585d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 0x3F -> 6%, 0x3A -> 10%, 0x3C -> 10%, 0x35 -> 15.8%, 0x28 -> 25.8% */ 459b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#define NFC_DEV_PMOS_MOD_DEFAULT 0x3CU 4605d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4615d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4625d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4635d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef SW_TYPE_RF_TUNING_BF 4645d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define SW_TYPE_RF_TUNING_BF 0x80U 4655d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4665d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4675d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4685d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Reset the Default values of Host Link Timers */ 469b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas/* Macro to Enable the Host Side Link Timeout Configuration 4705d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 0x00 ----> Default Pre-defined Configuration; 4715d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 0x01 ----> Update only the Host Link Guard Timeout Configuration; 472b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas * 0x03 ----> Update Both the Host Link Guard Timeout 4735d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly and ACK Timeout Configuration; 4745d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 475b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas 4765d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef HOST_LINK_TIMEOUT 4775d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define HOST_LINK_TIMEOUT 0x00U 4785d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4795d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4805d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4815d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFC_LINK_GRD_CFG_DEFAULT 4825d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFC_LINK_GRD_CFG_DEFAULT 0x0032U 4835d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4845d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4855d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFC_LINK_ACK_CFG_DEFAULT 4865d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFC_LINK_ACK_CFG_DEFAULT 0x0005U 4875d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4885d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 489b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas/* Macro to Enable the Interface Character Timeout Configuration 4905d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 0x00 ----> Default Pre-defined Configuration; 4915d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * 0x01 ----> Update the IFC Timeout Default Configuration; 4925d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 4935d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4945d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFC_IFC_TIMEOUT 4955d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFC_IFC_TIMEOUT 0x00 4965d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 4975d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4985d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 4995d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#ifndef NXP_NFC_IFC_CONFIG_DEFAULT 5005d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define NXP_NFC_IFC_CONFIG_DEFAULT 0x203AU 5015d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif 5025d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 503b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#ifndef NFC_ISO_15693_MULTIPLE_TAGS_SUPPORT 504b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#define NFC_ISO_15693_MULTIPLE_TAGS_SUPPORT 0x00 505b70c3011edf13b3b79dddaefb971b6fd7c33e193Daniel Tomas#endif 5065d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5075d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* 5085d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 5095d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly *********** MACROS ENABLE EEPROM REGISTER WRITE **************** 5105d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly ***************************************************************** 5115d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 5125d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5135d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5145d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Enable this to Disable the WI Notification */ 5155d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define DISABLE_WI_NOTIFICATION */ 5165d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5175d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Macro to Enable the Configuration of Initiator 5185d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * speed during Discovery configuration 5195d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 5205d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#define INITIATOR_SPEED 52120b7bd5f6985dc890ac99d7d1e8154f965df02dbMartijn Coenen#define TARGET_SPEED 5225d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5235d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5245d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/**/ 5255d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* #define UICC_SESSION_RESET */ 5265d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5275d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* Macro to Enable the Configuration of UICC 5285d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly * Timer and Bitrate during Initialisation 5295d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly */ 5305d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5315d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5325d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5335d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5345d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* -----------------Structures and Enumerations -------------------------*/ 5355d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5365d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5375d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5385d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5395d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly/* -----------------Exported Functions----------------------------------*/ 5405d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5415d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 5425d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly#endif /*PHNFC_CONFIG_H*/ 5435d9927ba30ba449badb9f6df0fbeb4d6aedc6e2aNick Pelly 544