Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: openwear-lifelogger-example
mpu_hal.h
00001 #ifndef __MPU_HAL_H 00002 #define __MPU_HAL_H 00003 00004 #include "i2c_api.h" 00005 #include "wait_api.h" 00006 00007 int mpu_i2c_write(unsigned char slave_addr, unsigned char reg_addr, 00008 unsigned char length, unsigned char const *data); 00009 int mpu_i2c_read(unsigned char slave_addr, unsigned char reg_addr, 00010 unsigned char length, unsigned char *data); 00011 int get_ms(unsigned long* timestamp); 00012 #define delay_ms wait_ms 00013 00014 #define log_i(...) do {} while (0) 00015 #define log_e(...) do {} while (0) 00016 #define min(a,b) ((a<b)?a:b) 00017 00018 #define MPU9250 00019 00020 extern i2c_t* mpu_i2c_dev; 00021 00022 #endif // __MPU_HAL_H
Generated on Thu Jul 14 2022 19:09:08 by
