Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thinkpad #151

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions src/halimpl/pn54x/tml/i2c/phTmlNfc_alt.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* 3 = OM557x on BeagleBone black
*
*/
#define CONFIGURATION 1
#define CONFIGURATION 3

#if (CONFIGURATION == 1)
/* OM557x on Raspberry Pi */
Expand All @@ -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