hack to debug spi
[aversive.git] / modules / devices / encoders / encoders_spi / encoders_spi.c
index a672803..28d119a 100644 (file)
@@ -24,6 +24,8 @@
  * interface. Basically, frames are formatted with 4 words of 16 bits,
  * describing the values of the 4 encoders. */
 
  * 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>
 #include <string.h>
 
 #include <aversive.h>
@@ -35,7 +37,7 @@
 #include <encoders_spi_config.h>
 
 static int32_t g_encoders_spi_values[ENCODERS_SPI_NUMBER];
 #include <encoders_spi_config.h>
 
 static int32_t g_encoders_spi_values[ENCODERS_SPI_NUMBER];
-static int16_t g_encoders_spi_previous[ENCODERS_SPI_NUMBER];
+/* static  */int16_t g_encoders_spi_previous[ENCODERS_SPI_NUMBER];
 
 
 /* Initialisation of encoders, variables */
 
 
 /* Initialisation of encoders, variables */
@@ -101,3 +103,5 @@ void encoders_spi_set_value(void *encoder, int32_t val)
        g_encoders_spi_values[(int)encoder] = val;
        IRQ_UNLOCK(flags);
 }
        g_encoders_spi_values[(int)encoder] = val;
        IRQ_UNLOCK(flags);
 }
+
+#endif