diff options
author | Keith Packard <keithp@keithp.com> | 2012-04-25 23:27:58 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-04-25 23:27:58 -0700 |
commit | e0b8c614ec4d11f432963e48d94e4497d31a9ddc (patch) | |
tree | 738c9b14517fb895fc141767fff631a56c82fce0 /src/drivers/ao_mpu6000.h | |
parent | 0266e08dbf19e2204fb5f758d5d0f944d2afff7d (diff) |
altos: Add mpu6000 and hmc5883 stubs
No real drivers here yet, just some testing stubs
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_mpu6000.h')
-rw-r--r-- | src/drivers/ao_mpu6000.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/drivers/ao_mpu6000.h b/src/drivers/ao_mpu6000.h new file mode 100644 index 00000000..d436a3e0 --- /dev/null +++ b/src/drivers/ao_mpu6000.h @@ -0,0 +1,30 @@ +/* + * Copyright © 2012 Keith Packard <keithp@keithp.com> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program; if not, write to the Free Software Foundation, Inc., + * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#ifndef _AO_MPU6000_H_ +#define _AO_MPU6000_H_ + +#define MPU6000_ADDR_WRITE 0xd0 +#define MPU6000_ADDR_READ 0xd1 + +#define MPU6000_ACCEL_XOUT_H 0x3b +#define MPU6000_WHO_AM_I 0x75 + +void +ao_mpu6000_init(void); + +#endif /* _AO_MPU6000_H_ */ |