summaryrefslogtreecommitdiff
path: root/src/megametrum-v0.1/ao_pins.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-02 17:09:00 -0700
committerKeith Packard <keithp@keithp.com>2012-06-02 17:12:27 -0700
commit9aa7993ee31bdfd6890ad7262a0375c07464ee76 (patch)
treec2fc7cf9e4e945b122eaa53d4e9788a0c171f663 /src/megametrum-v0.1/ao_pins.h
parent69a8907ecbb7ca0e8526aeea0dc7490a191a0f8b (diff)
altos: Intgrate hmc5883 sensor into adc ring
Creates a task to poll the mag sensor and place the data into the sensor data ring. 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/megametrum-v0.1/ao_pins.h b/src/megametrum-v0.1/ao_pins.h
index 75b22045..d6394d9b 100644
--- a/src/megametrum-v0.1/ao_pins.h
+++ b/src/megametrum-v0.1/ao_pins.h
@@ -235,6 +235,7 @@ struct ao_adc {
* Mag sensor (hmc5883)
*/
+#define HAS_HMC5883 1
#define AO_HMC5883_INT_PORT stm_gpioc
#define AO_HMC5883_INT_PIN 12
#define AO_HMC5883_I2C_INDEX STM_I2C_INDEX(1)