It is modified accordingly to work with sparkfun dmp library under mbed platform
Dependents: MPU9250-dmp-bluepill MPU9250-dmp
Fork of MotionDriver_6_1 by
Diff: inv_mpu_dmp_motion_driver.c
- Revision:
- 1:a6c3f8680fe0
- Parent:
- 0:5fa30cf392c3
diff -r 5fa30cf392c3 -r a6c3f8680fe0 inv_mpu_dmp_motion_driver.c --- a/inv_mpu_dmp_motion_driver.c Sun Aug 24 00:52:07 2014 +0000 +++ b/inv_mpu_dmp_motion_driver.c Mon Aug 07 13:49:51 2017 +0000 @@ -72,7 +72,12 @@ #define log_e MPL_LOGE #else -#error Gyro driver is missing the system layer implementations. +#warning Your system is not officially supported. So, I will just include \ + mdcompat.h, however you must provide it. +#include "mdcompat.h" +#define log_i MPL_LOGI +#define log_e MPL_LOGE + #endif /* These defines are copied from dmpDefaultMPU6050.c in the general MPL @@ -635,7 +640,7 @@ mpu_get_accel_sens(&accel_sens); accel_sf = (long long)accel_sens << 15; - __no_operation(); + //nsol __no_operation(); accel_bias_body[0] = bias[dmp.orient & 3]; if (dmp.orient & 4)