资源简介
9轴传感器官方驱动包,内含stm32F4驱动、mps430等驱动,各位下载下来后自己看吧。
代码片段和文件信息
/*
$License:
Copyright (C) 2011-2012 InvenSense Corporation All Rights Reserved.
See included License.txt for License information.
$
*/
/**
* @addtogroup DRIVERS Sensor Driver layer
* @brief Hardware drivers to communicate with sensors via I2C.
*
* @{
* @file inv_mpu.c
* @brief An I2C-based driver for Invensense gyroscopes.
* @details This driver currently works for the following devices:
* MPU6050
* MPU6500
* MPU9150 (or MPU6050 w/ AK8975 on the auxiliary bus)
* MPU9250 (or MPU6500 w/ AK8963 on the auxiliary bus)
*/
#include
#include
#include
#include
#include
#include “inv_mpu.h“
/* The following functions must be defined for this platform:
* i2c_write(unsigned char slave_addr unsigned char reg_addr
* unsigned char length unsigned char const *data)
* i2c_read(unsigned char slave_addr unsigned char reg_addr
* unsigned char length unsigned char *data)
* delay_ms(unsigned long num_ms)
* get_ms(unsigned long *count)
* reg_int_cb(void (*cb)(void) unsigned char port unsigned char pin)
* labs(long x)
* fabsf(float x)
* min(int a int b)
*/
#if defined EMPL_TARGET_STM32F4
#include “i2c.h“
#include “main.h“
#include “log.h“
#include “board-st_discovery.h“
#define i2c_write Sensors_I2C_WriteRegister
#define i2c_read Sensors_I2C_ReadRegister
#define delay_ms mdelay
#define get_ms get_tick_count
#define log_i MPL_LOGI
#define log_e MPL_LOGE
#define min(ab) ((a
#elif defined MOTION_DRIVER_TARGET_MSP430
#include “msp430.h“
#include “msp430_i2c.h“
#include “msp430_clock.h“
#include “msp430_interrupt.h“
#define i2c_write msp430_i2c_write
#define i2c_read msp430_i2c_read
#define delay_ms msp430_delay_ms
#define get_ms msp430_get_clock_ms
static inline int reg_int_cb(struct int_param_s *int_param)
{
return msp430_reg_int_cb(int_param->cb int_param->pin int_param->lp_exit
int_param->active_low);
}
#define log_i(...) do {} while (0)
#define log_e(...) do {} while (0)
/* labs is already defined by TI‘s toolchain. */
/* fabs is for doubles. fabsf is for floats. */
#define fabs fabsf
#define min(ab) ((a#elif defined EMPL_TARGET_MSP430
#include “msp430.h“
#include “msp430_i2c.h“
#include “msp430_clock.h“
#include “msp430_interrupt.h“
#include “log.h“
#define i2c_write msp430_i2c_write
#define i2c_read msp430_i2c_read
#define delay_ms msp430_delay_ms
#define get_ms msp430_get_clock_ms
static inline int reg_int_cb(struct int_param_s *int_param)
{
return msp430_reg_int_cb(int_param->cb int_param->pin int_param->lp_exit
int_param->active_low);
}
#define log_i MPL_LOGI
#define log_e MPL_LOGE
/* labs is already defined by TI‘s toolchain. */
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 21606 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\Binary\STM32L-Discovery.hex
文件 19342 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\dmpKey.h
文件 6765 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\dmpmap.h
文件 98949 2015-01-26 19:11 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\inv_mpu.c
文件 4815 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\inv_mpu.h
文件 58481 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\inv_mpu_dmp_motion_driver.c
文件 3538 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\eMPL\inv_mpu_dmp_motion_driver.h
文件 10450 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\log.h
文件 1014 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\mlinclude.h
文件 2264 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\mlmath.h
文件 2134 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\mlos.h
文件 9514 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\mltypes.h
文件 11753 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\mpu.h
文件 834 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\include\stdint_invensense.h
文件 6052 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\stm32L\log_stm32.c
文件 1546 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\driver\stm32L\packet.h
文件 11202 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\eMPL-hal\eMPL_outputs.c
文件 1312 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\eMPL-hal\eMPL_outputs.h
文件 45887 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\data_builder.c
文件 9505 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\data_builder.h
文件 18516 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\hal_outputs.c
文件 1699 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\hal_outputs.h
文件 656 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\invensense.h
文件 1591 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\message_la
文件 934 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\message_la
文件 1025 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\mlmath.c
文件 25352 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\ml_math_func.c
文件 4881 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\ml_math_func.h
文件 1787 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\mpl.c
文件 435 2014-07-29 06:26 motion_driver_6-\motion_driver_6.1\arm\STM32F4_MD6\Projects\eMD6\core\mllite\mpl.h
............此处省略1427个文件信息
相关资源
- Linux 中TCP/IP协议实现及嵌入式应用
- 嵌入式系统--体系结构.编程与设计
- ARM嵌入式系统技术就用笔记-基于L
- 基于SOC fpga的开发教程
- 嵌入式课程设计ARM-a9.rar
- STM32L1XX最新固件库
- 编译好的基于linux_arm64的etcd_3.1.14
- 基于FPGA的数字图像处理原理及应用
- 轻松玩转STM32微控制器-杨百军
- 工业运动控制:电机选择、驱动器和
- Tiny4412开发板所使用的linux3.5版本内核
- 嵌入式Linux程序设计案例与实验教程
- 嵌入式系统原理、设计及开发.pdf
- 嵌入式网络那些事-STM32物联实战_清晰
- fritzing软件版本0.9.4
- 十三五-嵌入式LINUX操作系统原理与应
- 嵌入式实时操作系统μCOS-II原理及应用
- 基于niosⅡ和嵌入式sopc系统设计与ve
- 《嵌入式硬件》 [美] 甘瑟尔 高清版
- 《嵌入式系统原理与实践--ARM Cortex-
- 嵌入式DSP的原理与应用 基于TMS320F28
- 嵌入式LINUX基础教程第2版.pdf
- 嵌入式系统 从SOC芯片到系统 第二版
- 嵌入式实时操作系统μCOS-Ⅱ经典——
- CAN总线嵌入式开发 从入门到实战 第
- 一步步写嵌入式操作系统 ARM编程的方
- 飞凌嵌入式AM335x Linux软件手册OK335xD
- 嵌入式Linux应用程序开发详解(完整版
- STM32F103C8T6开发参考例程代码
- Windows+CE嵌入式高级编程及其详解.pd
评论
共有 条评论