altos: Use new ao_spi_speed inline to set SPI speeds using spec'd frequencies
[fw/altos] / src / drivers / ao_adxl375.c
index 4f6b816948709632e5462e1d8d0460a0f3911b49..c7cf78af7d8f7940c985a10c2171630a6c606d77 100644 (file)
@@ -26,6 +26,8 @@
 #define PRINTD(l,...)
 #endif
 
+#define AO_ADXL375_SPI_SPEED   ao_spi_speed(5000000)
+
 struct ao_adxl375_sample       ao_adxl375_current;
 
 static void
@@ -235,13 +237,13 @@ static struct ao_task ao_adxl375_task;
 static void
 ao_adxl375_dump(void)
 {
-       printf ("ADXL375 value %d %d %d self test %d min %d max %d\n",
+       printf ("ADXL375 value %d %d %d self test %ld min %ld max %ld\n",
                ao_adxl375_current.x,
                ao_adxl375_current.y,
                ao_adxl375_current.z,
-               self_test_value,
-               MIN_SELF_TEST,
-               MAX_SELF_TEST);
+               (long) self_test_value,
+               (long) MIN_SELF_TEST,
+               (long) MAX_SELF_TEST);
 }
 
 const struct ao_cmds ao_adxl375_cmds[] = {