Add macro to make it clear we expect 7-bit addresses
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1675 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
d044d4f67b
commit
b1b2689519
@ -47,6 +47,11 @@
|
||||
* Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/* I2C address calculation. Convert 7-bit address to 8-bit read/write address */
|
||||
|
||||
#define I2C_READADDR(a) (((a) << 1) | 1)
|
||||
#define I2C_WRITEADDR(a) ((a) << 1)
|
||||
|
||||
/* Access macros */
|
||||
|
||||
/****************************************************************************
|
||||
|
Loading…
x
Reference in New Issue
Block a user