git.droids-corp.org
/
aversive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fca037e
)
better compilation on host
author
zer0
<zer0@carbon.local>
Sat, 9 Jan 2010 16:39:09 +0000
(17:39 +0100)
committer
zer0
<zer0@carbon.local>
Sat, 9 Jan 2010 16:39:09 +0000
(17:39 +0100)
modules/devices/encoders/encoders_spi/encoders_spi.c
patch
|
blob
|
history
diff --git
a/modules/devices/encoders/encoders_spi/encoders_spi.c
b/modules/devices/encoders/encoders_spi/encoders_spi.c
index a6728030c3a929900875eb2c7552a1f75c57a0e6..ae0d0d1e579a3b1ffc1bb0648f2ae9d6e0ee2913 100644
(file)
--- a/
modules/devices/encoders/encoders_spi/encoders_spi.c
+++ b/
modules/devices/encoders/encoders_spi/encoders_spi.c
@@
-24,6
+24,8
@@
* interface. Basically, frames are formatted with 4 words of 16 bits,
* describing the values of the 4 encoders. */
+#ifndef HOST_VERSION
+
#include <string.h>
#include <aversive.h>
@@
-101,3
+103,5
@@
void encoders_spi_set_value(void *encoder, int32_t val)
g_encoders_spi_values[(int)encoder] = val;
IRQ_UNLOCK(flags);
}
+
+#endif