summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-04-25 23:29:20 -0700
committerKeith Packard <keithp@keithp.com>2012-04-25 23:29:20 -0700
commit7b0b6bcc40891d8dd106d091d3af8107b2941c66 (patch)
treef90f8e700d182ebeafbcfa62e5a682d000f53c9e /src/megametrum-v0.1/ao_pins.h
parente0b8c614ec4d11f432963e48d94e4497d31a9ddc (diff)
altos: Add hmc5883 and mpu6000 drivers to megametrum build
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.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index 2e83de8a..cd270739 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -42,7 +42,7 @@
#define AO_RCC_CFGR_PPRE2_DIV STM_RCC_CFGR_PPRE2_DIV_2
#define HAS_SERIAL_1 1
-#define USE_SERIAL_1_STDIN 1
+#define USE_SERIAL_1_STDIN 0
#define SERIAL_1_PB6_PB7 0
#define SERIAL_1_PA9_PA10 1
@@ -206,4 +206,20 @@ struct ao_adc {
#define AO_CC1120_INT_GPIO 2
+/*
+ * Mag sensor (hmc5883)
+ */
+
+#define AO_HMC5883_INT_PORT stm_gpioc
+#define AO_HMC5883_INT_PIN 12
+#define AO_HMC5883_I2C_INDEX STM_SPI_INDEX(1)
+
+/*
+ * mpu6000
+ */
+
+#define AO_MPU6000_INT_PORT stm_gpioc
+#define AO_MPU6000_INT_PIN 13
+#define AO_MPU6000_I2C_INDEX STM_SPI_INDEX(1)
+
#endif /* _AO_PINS_H_ */