first cut at turnon scripts for EasyTimer v2
[fw/altos] / src / drivers / ao_mma655x.h
index 9c0c59dc10d0933bb44a3f4f5d9ab44009c053d4..87f7384ddeea7f6fcefdb84bd577fae0b30d8ef9 100644 (file)
@@ -3,7 +3,8 @@
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
  *
  * This program is distributed in the hope that it will be useful, but
  * WITHOUT ANY WARRANTY; without even the implied warranty of
 #define AO_MMA655X_COUNT       0x15
 #define AO_MMA655X_OFFCORR     0x16
 
+/*
+ * Range of valid self-test difference from
+ * normal measurement
+ */
+
+#define AO_ST_MIN      300
+#define AO_ST_MAX      800
+
+extern uint16_t        ao_mma655x_current;
 
 void
 ao_mma655x_init(void);