Porting from Arduino Platform to mbed KL25Z. Original Source: https://github.com/adafruit/Adafruit-PN532

Dependencies:   mbed

Fork of readMifare by Interactive Device Design

Files at this revision

API Documentation at this revision

Comitter:
nebgnahz
Date:
Fri Sep 19 05:09:50 2014 +0000
Parent:
0:54bf4b21c7fa
Commit message:
code clean up and documentation fix.

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Sep 19 05:04:15 2014 +0000
+++ b/main.cpp	Fri Sep 19 05:09:50 2014 +0000
@@ -1,12 +1,11 @@
-// readMifare code adapted from Adafruit-PN532 library.
-// see: https://github.com/adafruit/Adafruit-PN532
-//
-// Original Author : Adafruit Industries
-// Modified By     : Ben Zhang <benzh@eecs.berkeley.edu>
-// Date            : 2014/09/17
+/**************************************************************************/
+/*!
 
-/**************************************************************************/
-/*! 
+    @file          main.cpp
+    @author        Adafruit Industries
+    @modified_by   Ben Zhang <benzh@eecs.berkeley.edu>
+    @license       BSD (see license.txt)
+    
     This example will wait for any ISO14443A card or tag, and
     depending on the size of the UID will attempt to read from it.
    
@@ -42,7 +41,7 @@
 #include "Adafruit_PN532.h"
 
 #define SS   PTD0
-// PTD1 is also LED_BLUE
+// PTD1 is also LED_BLUE, it will blink during SPI communication.
 #define SCK  PTD1
 #define MOSI PTD2
 #define MISO PTD3
@@ -60,7 +59,6 @@
   // By default, red
   green = 1; red = 0;
 
-  
   nfc.begin();
 
   uint32_t versiondata = nfc.getFirmwareVersion();