Subversion Repositories Code-Repo

Compare Revisions

Ignore whitespace Rev 146 → Rev 147

/PIC Stuff/PIC_27J13/nfc.c
1,4 → 1,4
#include "maindefs.h"
#include "defines.h"
#include "nfc.h"
#include "i2c.h"
#include <string.h>
13,13 → 13,15
 
void NFC_Init() {
NFC_IRQ_TRIS = 1; // IRQ Pin is RC5
NFC_RESET_TRIS = 0; // Reset Pin is RC2
 
// Reset the PN532
NFC_RESET_LAT = 1;
NFC_RESET_LAT = 0;
Delay10TCYx(1);
NFC_RESET_LAT = 1;
/* NFC reset is disabled due to lack of pins */
// NFC_RESET_TRIS = 0; // Reset Pin is RC2
//
// // Reset the PN532
// NFC_RESET_LAT = 1;
// NFC_RESET_LAT = 0;
// Delay10TCYx(1);
// NFC_RESET_LAT = 1;
}
 
// Configures the SAM (Secure Access Module)