diff options
author | Keith Packard <keithp@keithp.com> | 2012-06-02 17:09:00 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-06-02 17:12:27 -0700 |
commit | 9aa7993ee31bdfd6890ad7262a0375c07464ee76 (patch) | |
tree | c2fc7cf9e4e945b122eaa53d4e9788a0c171f663 /src/drivers/ao_hmc5883.h | |
parent | 69a8907ecbb7ca0e8526aeea0dc7490a191a0f8b (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/drivers/ao_hmc5883.h')
-rw-r--r-- | src/drivers/ao_hmc5883.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/drivers/ao_hmc5883.h b/src/drivers/ao_hmc5883.h index 55690978..8d726510 100644 --- a/src/drivers/ao_hmc5883.h +++ b/src/drivers/ao_hmc5883.h @@ -75,10 +75,14 @@ #define HMC5883_ID_B 11 #define HMC5883_ID_C 12 +extern uint8_t ao_hmc5883_valid; + struct ao_hmc5883_sample { int16_t x, y, z; }; +extern struct ao_hmc5883_sample ao_hmc5883_current; + void ao_hmc5883_init(void); |