projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3909fca
)
altos: Move MS5607 configuration to ao_pins.h
author
Keith Packard
<keithp@keithp.com>
Tue, 10 Apr 2012 05:23:52 +0000
(22:23 -0700)
committer
Keith Packard
<keithp@keithp.com>
Tue, 10 Apr 2012 05:23:52 +0000
(22:23 -0700)
Which SPI port and where chip select is to be found are product specific.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/megametrum-v0.1/ao_pins.h
patch
|
blob
|
history
diff --git
a/src/megametrum-v0.1/ao_pins.h
b/src/megametrum-v0.1/ao_pins.h
index f5789cf9df993d2b3bdd277fb3d6e359cbe9497d..e200a692eb4cb56e6d04ce4ff3d2360050367264 100644
(file)
--- 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_ */