projects
/
bno055.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5332ba1
)
Add port to Mac OS X.
f1
author
Walter Fetter Lages
<w.fetter@ieee.org>
Mon, 12 Aug 2019 20:53:59 +0000
(17:53 -0300)
committer
Walter Fetter Lages
<w.fetter@ieee.org>
Mon, 12 Aug 2019 20:53:59 +0000
(17:53 -0300)
lib/bno055_i2c.c
patch
|
blob
|
history
diff --git
a/lib/bno055_i2c.c
b/lib/bno055_i2c.c
index
4466bd9
..
6ff8706
100644
(file)
--- a/
lib/bno055_i2c.c
+++ b/
lib/bno055_i2c.c
@@
-22,7
+22,12
@@
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
+
+#ifndef __APPLE__
#include <linux/i2c-dev.h>
+#else
+#define I2C_SLAVE 0x0703
+#endif
#include <bno055_delay.h>
#include <bno055_i2c.h>