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 Prosper Van

Files at this revision

API Documentation at this revision

Comitter:
mbedoguz
Date:
Mon Aug 14 07:36:07 2017 +0000
Parent:
5:e4e36c17ba70
Commit message:
get_ms now returns the counter.

Changed in this revision

mdcompat.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/mdcompat.cpp	Fri Aug 11 07:42:24 2017 +0000
+++ b/mdcompat.cpp	Mon Aug 14 07:36:07 2017 +0000
@@ -63,7 +63,7 @@
 int get_ms(
     unsigned long *count=(unsigned long*)malloc(sizeof(unsigned long))) {
         *count=stamper_count;
-    return 0;
+    return (int)stamper_count;
 }
 
 int reg_int_cb(