Motion Processing Library adapted to mbed

Dependents:   openwear-lifelogger-example

Files at this revision

API Documentation at this revision

Comitter:
janekm
Date:
Tue Sep 16 22:42:12 2014 +0000
Parent:
0:61a7cadab29e
Commit message:
I forgot

Changed in this revision

inv_mpu.c Show annotated file Show diff for this revision Revisions of this file
inv_mpu_dmp_motion_driver.c Show annotated file Show diff for this revision Revisions of this file
mpu_hal.c Show annotated file Show diff for this revision Revisions of this file
mpu_hal.h Show annotated file Show diff for this revision Revisions of this file
--- a/inv_mpu.c	Mon Sep 08 23:16:52 2014 +0000
+++ b/inv_mpu.c	Tue Sep 16 22:42:12 2014 +0000
@@ -690,11 +690,6 @@
     if (mpu_configure_fifo(0))
         return -1;
 
-#ifndef EMPL_TARGET_STM32L    
-    if (int_param)
-        reg_int_cb(int_param);
-#endif
-
 #ifdef AK89xx_SECONDARY
     setup_compass();
     if (mpu_set_compass_sample_rate(10))
--- a/inv_mpu_dmp_motion_driver.c	Mon Sep 08 23:16:52 2014 +0000
+++ b/inv_mpu_dmp_motion_driver.c	Tue Sep 16 22:42:12 2014 +0000
@@ -595,7 +595,7 @@
 
     mpu_get_accel_sens(&accel_sens);
     accel_sf = (long long)accel_sens << 15;
-    __no_operation();
+    //__no_operation();
 
     accel_bias_body[0] = bias[dmp.orient & 3];
     if (dmp.orient & 4)
--- a/mpu_hal.c	Mon Sep 08 23:16:52 2014 +0000
+++ b/mpu_hal.c	Tue Sep 16 22:42:12 2014 +0000
@@ -28,7 +28,7 @@
     return 0;
 }
 
-int get_ms(int* timestamp) 
+int get_ms(unsigned long* timestamp) 
 {
     *timestamp = (us_ticker_read() / 1000);
     return *timestamp;
--- a/mpu_hal.h	Mon Sep 08 23:16:52 2014 +0000
+++ b/mpu_hal.h	Tue Sep 16 22:42:12 2014 +0000
@@ -2,12 +2,13 @@
 #define __MPU_HAL_H
 
 #include "i2c_api.h"
+#include "wait_api.h"
 
 int mpu_i2c_write(unsigned char slave_addr, unsigned char reg_addr,
                      unsigned char length, unsigned char const *data);
 int mpu_i2c_read(unsigned char slave_addr, unsigned char reg_addr,
                      unsigned char length, unsigned char *data);
-int get_ms(int* timestamp);
+int get_ms(unsigned long* timestamp);
 #define delay_ms wait_ms
 
 #define log_i(...)     do {} while (0)