summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-08-18 21:26:34 -0700
committerKeith Packard <keithp@keithp.com>2012-08-18 21:26:34 -0700
commit93db8febda03d9a02c5c1ccdc6ad44eaf00a433b (patch)
tree51f8f0991ef9cb5b19921520a589ebc620ec9013 /src/megametrum-v0.1/ao_pins.h
parent8457ca81adc9d62a7ffe56a7c0c36f2fcadaa682 (diff)
altos: Add MMA655X driver
Just debug code at this point, will complete on real hardware Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/megametrum-v0.1/ao_pins.h')
-rw-r--r--src/megametrum-v0.1/ao_pins.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index 42715968..6256d2f6 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -305,6 +305,15 @@ struct ao_adc {
#define HAS_HIGHG_ACCEL 0
+/*
+ * mma655x
+ */
+
+#define HAS_MMA655X 1
+#define AO_MMA655X_SPI_INDEX AO_SPI_1_PA5_PA6_PA7
+#define AO_MMA655X_CS_GPIO (&stm_gpiod)
+#define AO_MMA655X_CS 4
+
#define NUM_CMDS 16
/*