summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-09 22:23:52 -0700
committerKeith Packard <keithp@keithp.com>2012-04-09 22:23:52 -0700
commit0cd682ef0c8cdcf364b7e173ff3a9f84e485c113 (patch)
treea1d02ae84232901b2881126fc7f82076c5d11bc6
parent3909fca0a3f918121888a415f9bf9bca99505366 (diff)
altos: Move MS5607 configuration to ao_pins.h
Which SPI port and where chip select is to be found are product specific. Signed-off-by: Keith Packard <keithp@keithp.com>
-rw-r--r--src/megametrum-v0.1/ao_pins.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index f5789cf9..e200a692 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -174,4 +174,12 @@ struct ao_adc {
#define AO_ADC_SQ8 AO_ADC_V_PBATT
#define AO_ADC_SQ9 AO_ADC_TEMP
+/*
+ * Pressure sensor settings
+ */
+#define AO_MS5607_CS_GPIO stm_gpioc
+#define AO_MS5607_CS 4
+#define AO_MS5607_CS_MASK (1 << AO_MS5607_CS)
+#define AO_MS5607_SPI_INDEX (STM_SPI_INDEX(1))
+
#endif /* _AO_PINS_H_ */