mpu9250: Adding support for MPU-9250 (and MPU-6050) accelerometer

Add support for mpu9250 accelerometer over I2C bus.

Signed-off-by: Harry Beyel <harry3b9@gmail.com>
This commit is contained in:
bluesforte
2022-05-04 16:02:37 -07:00
committed by Kevin O'Connor
parent fc7838855f
commit f55b9d3e57
6 changed files with 786 additions and 5 deletions

13
src/i2ccmds.h Normal file
View File

@@ -0,0 +1,13 @@
#ifndef __I2CCMDS_H
#define __I2CCMDS_H
#include <inttypes.h>
#include "board/gpio.h" // i2c_config
struct i2cdev_s {
struct i2c_config i2c_config;
};
struct i2cdev_s *i2cdev_oid_lookup(uint8_t oid);
#endif