i2c working with old hk

Dependencies:   mbed-rtos mbed

Fork of BAE_vr2_1_1 by green rosh

Committer:
sakthipriya
Date:
Wed Dec 17 06:06:59 2014 +0000
Revision:
14:ef6be8ac6569
Parent:
13:1b37d98840d3
i2c working with old hk

Who changed what in which revision?

UserRevisionLine numberNew contents of line
greenroshks 13:1b37d98840d3 1 //MPU 3300 registers
greenroshks 13:1b37d98840d3 2 #define SMPLRT_DIV 0x19
greenroshks 13:1b37d98840d3 3 #define CONFIG 0x1A
greenroshks 13:1b37d98840d3 4 #define GYRO_CONFIG 0x1B
greenroshks 13:1b37d98840d3 5 #define GYRO_XOUT_H 0x43
greenroshks 13:1b37d98840d3 6 #define GYRO_XOUT_L 0x44
greenroshks 13:1b37d98840d3 7 #define GYRO_YOUT_H 0x45
greenroshks 13:1b37d98840d3 8 #define GYRO_YOUT_L 0x46
greenroshks 13:1b37d98840d3 9 #define GYRO_ZOUT_H 0x47
greenroshks 13:1b37d98840d3 10 #define GYRO_ZOUT_L 0x48
greenroshks 13:1b37d98840d3 11 #define USER_CTRL 0x6A
greenroshks 13:1b37d98840d3 12 #define PWR_MGMT_1 0x6B
greenroshks 13:1b37d98840d3 13 #define INT_ENABLE 0x38
greenroshks 13:1b37d98840d3 14
greenroshks 13:1b37d98840d3 15 //MPU configuration bits
greenroshks 13:1b37d98840d3 16 #define READFLAG 0x80
greenroshks 13:1b37d98840d3 17 #define DUMMYBIT 0x00
greenroshks 13:1b37d98840d3 18 #define BITS_DLPF_CFG 0x07
greenroshks 13:1b37d98840d3 19 #define BITS_FS_SEL_3 0x08
greenroshks 13:1b37d98840d3 20 #define BITS_FS_SEL_4 0x10
greenroshks 13:1b37d98840d3 21 #define BIT_I2C_IF_DIS 0x10
greenroshks 13:1b37d98840d3 22 #define BITS_SMPLRT_DIV 0x00
greenroshks 13:1b37d98840d3 23 #define BIT_SLEEP 0x40
greenroshks 13:1b37d98840d3 24 #define BIT_DATA_RDY_ENABLE 0x01
greenroshks 13:1b37d98840d3 25 #define BIT_DATA_RDY_INT 0x01
greenroshks 13:1b37d98840d3 26 #define BIT_CLKSEL_X 0x01