diff --git a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h index 7646942..d99e1f2 100755 --- a/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h +++ b/src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h @@ -28,7 +28,7 @@ * 3 = OM557x on BeagleBone black * */ -#define CONFIGURATION 1 +#define CONFIGURATION 3 #if (CONFIGURATION == 1) /* OM557x on Raspberry Pi */ @@ -37,21 +37,21 @@ #define PIN_INT 23 #define PIN_ENABLE 24 #elif (CONFIGURATION == 2) -/* OM557x on UdooNeo */ - #define I2C_BUS "/dev/i2c-1" - #define I2C_ADDRESS 0x28 - #define PIN_INT 105 - #define PIN_ENABLE 149 -#elif (CONFIGURATION == 3) -/* OM557x on BeagleBone Black */ +/* X1Yoga7/X1Carbon10 */ #define I2C_BUS "/dev/i2c-2" - #define I2C_ADDRESS 0x28 - #define PIN_INT 61 - #define PIN_ENABLE 30 + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x0141 + #define PIN_ENABLE 512+0x0145 +#elif (CONFIGURATION == 3) +/* X1Yoga8/X1Carbon11 */ + #define I2C_BUS "/dev/i2c-3" + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x141 + #define PIN_ENABLE 512+0x145 #else /* Custom configuration */ - #define I2C_BUS "/dev/i2c-1" - #define I2C_ADDRESS 0x28 - #define PIN_INT 23 - #define PIN_ENABLE 24 + #define I2C_BUS "/dev/i2c-2" + #define I2C_ADDRESS 0x29 + #define PIN_INT 512+0x0141 + #define PIN_ENABLE 512+0x0145 #endif