altos/telemetrum-v2.0: Fix MMA6555 SPI pin assignment
authorKeith Packard <keithp@keithp.com>
Wed, 28 Aug 2013 03:36:02 +0000 (21:36 -0600)
committerKeith Packard <keithp@keithp.com>
Wed, 28 Aug 2013 03:56:42 +0000 (21:56 -0600)
For TM v2.0, it's on PB 3-5, not PE13-15

Signed-off-by: Keith Packard <keithp@keithp.com>
src/telemetrum-v2.0/ao_pins.h

index c4f8c69668fb752d79955224da536c70743692d1..1ca2ddde71ea72f369b58918e1d927f8cf2445d2 100644 (file)
@@ -248,9 +248,9 @@ struct ao_adc {
  */
 
 #define HAS_MMA655X            1
  */
 
 #define HAS_MMA655X            1
-#define AO_MMA655X_SPI_INDEX   AO_SPI_1_PE13_PE14_PE15
-#define AO_MMA655X_CS_PORT     (&stm_gpiod)
-#define AO_MMA655X_CS_PIN      4
+#define AO_MMA655X_SPI_INDEX   AO_SPI_1_PB3_PB4_PB5
+#define AO_MMA655X_CS_PORT     (&stm_gpiob)
+#define AO_MMA655X_CS_PIN      9
 
 #define NUM_CMDS               16
 
 
 #define NUM_CMDS               16