summaryrefslogtreecommitdiffstats
path: root/nfc/nfc_hw.c
diff options
context:
space:
mode:
Diffstat (limited to 'nfc/nfc_hw.c')
-rw-r--r--nfc/nfc_hw.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/nfc/nfc_hw.c b/nfc/nfc_hw.c
index cd26be5..295bcab 100644
--- a/nfc/nfc_hw.c
+++ b/nfc/nfc_hw.c
@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+#include <stdlib.h>
#include <errno.h>
#include <string.h>
@@ -23,7 +24,7 @@ static uint8_t pn544_eedata_settings[][4] = {
// DIFFERENTIAL_ANTENNA
// RF Settings
- {0x00,0x9B,0xD1,0x0D} // Tx consumption higher than 0x0D (average 50mA)
+ {0x00,0x9B,0xD1,0x0D} // Tx consumption higher than 0x0D (average 50mA)
,{0x00,0x9B,0xD2,0x24} // GSP setting for this threshold
,{0x00,0x9B,0xD3,0x0A} // Tx consumption higher than 0x0A (average 40mA)
,{0x00,0x9B,0xD4,0x22} // GSP setting for this threshold
@@ -88,16 +89,16 @@ static uint8_t pn544_eedata_settings[][4] = {
,{0x00,0x98,0xA2,0x08} // Set to 0x08 as required by [digital] (default value: 09)
//SE GPIO
- ,{0x00, 0x98, 0x93, 0x40}
+ ,{0x00,0x98,0x93,0x40}
// Set NFCT ATQA
- ,{0x00, 0x98, 0x7D, 0x02}
- ,{0x00, 0x98, 0x7E, 0x00}
+ ,{0x00,0x98,0x7D,0x02}
+ ,{0x00,0x98,0x7E,0x00}
// Enable CEA detection mechanism
- ,{0x00, 0x9F, 0xC8, 0x01}
+ ,{0x00,0x9F,0xC8,0x01}
// Set NFC-F poll RC=0x00
- ,{0x00, 0x9F, 0x9A, 0x00}
+ ,{0x00,0x9F,0x9A,0x00}
// Setting for EMD support for ISO 14443-4 Reader
,{0x00,0x9F,0x09,0x00} // 0x00 - Disable EMD support, 0x01 - Enable EMD support
};