Motion Processing Library adapted to mbed
Dependents: openwear-lifelogger-example
Revision 1:6221b0518f94, committed 2014-09-16
- Comitter:
- janekm
- Date:
- Tue Sep 16 22:42:12 2014 +0000
- Parent:
- 0:61a7cadab29e
- Commit message:
- I forgot
Changed in this revision
diff -r 61a7cadab29e -r 6221b0518f94 inv_mpu.c --- 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))
diff -r 61a7cadab29e -r 6221b0518f94 inv_mpu_dmp_motion_driver.c --- 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)
diff -r 61a7cadab29e -r 6221b0518f94 mpu_hal.c --- 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;
diff -r 61a7cadab29e -r 6221b0518f94 mpu_hal.h --- 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)