X-Git-Url: https://git.rohieb.name/hackover2013-badge-firmware.git/blobdiff_plain/2d0f1c5e6cd990966564f3ff6aa8358cb4d0cdfa..93c512316922dde3edd28eb8388b7abcdf0174ec:/drivers/sensors/pn532/pn532_bus.h diff --git a/drivers/sensors/pn532/pn532_bus.h b/drivers/sensors/pn532/pn532_bus.h index 1d578cc..1628bc5 100644 --- a/drivers/sensors/pn532/pn532_bus.h +++ b/drivers/sensors/pn532/pn532_bus.h @@ -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) @@ -22,8 +23,12 @@ #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);