I2C and LCD bug fixes
[hackover2013-badge-firmware.git] / drivers / sensors / pn532 / pn532_bus.h
index 1d578cc..1628bc5 100644 (file)
@@ -11,6 +11,7 @@
 #include "pn532.h"
 
 #define PN532_BUS_UART
+// #define PN532_BUS_I2C
 
 #define PN532_RSTPD_PORT                      (2)
 #define PN532_RSTPD_PIN                       (2)
 #define PN532_EXTENDED_FRAME__DATA_MAX_LEN    (264)
 #define PN532_EXTENDED_FRAME__OVERHEAD        (11)
 #define PN532_BUFFER_LEN                      (PN532_EXTENDED_FRAME__DATA_MAX_LEN + PN532_EXTENDED_FRAME__OVERHEAD)
+
 #define PN532_UART_BAUDRATE                   (115200)
 
+#define PN532_I2C_ADDRESS                     (0x48)
+#define PN532_I2C_READBIT                     (0x01)
+
 // Generic interface for the different serial buses available on the PN532
 void          pn532_bus_HWInit(void);
 pn532_error_t pn532_bus_SendCommand(const byte_t * pbtData, const size_t szData);
This page took 0.018239 seconds and 4 git commands to generate.