Skip to content
Snippets Groups Projects
Commit b1b26895 authored by patacongo's avatar patacongo
Browse files

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
parent d044d4f6
No related branches found
No related tags found
No related merge requests found
......@@ -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 */
/****************************************************************************
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment