From 0cd682ef0c8cdcf364b7e173ff3a9f84e485c113 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 9 Apr 2012 22:23:52 -0700 Subject: [PATCH] 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 --- src/megametrum-v0.1/ao_pins.h | 8 ++++++++ 1 file changed, 8 insertions(+) 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_ */ -- 2.30.2