ported from https://github.com/jrowberg/i2cdevlib/tree/master/Arduino/MPU6050. Please refer this examples https://developer.mbed.org/users/syundo0730/code/MPU6050_Example/ to run this library in mbed.

Dependencies:   ArduinoSerial I2Cdev

Dependents:   MPU6050_Example

Fork of MPU6050 + MPU9150 by Andreas Kodewitz

Revision:
3:25e1a5a10e53
Parent:
2:f8bfb37b2e1f
Child:
6:f38dfe62d74c
--- a/MPU6050.cpp	Sun May 12 10:54:50 2013 +0000
+++ b/MPU6050.cpp	Tue Nov 19 19:05:55 2013 +0000
@@ -46,8 +46,8 @@
 
 //instead of using pgmspace.h
 typedef const unsigned char prog_uchar;
-#define pgm_read_byte_near(x) (*(prog_uchar*)x)
-#define pgm_read_byte(x) (*(prog_uchar*)x)
+#define pgm_read_byte_near(x) (*(prog_uchar*)(x))//<- I modified here
+#define pgm_read_byte(x) (*(prog_uchar*)(x))//<- I modified here
 
 /** Default constructor, uses default I2C address.
  * @see MPU6050_DEFAULT_ADDRESS