hi3559av100六轴陀螺仪ICM-20689驱动移植

1. copy iam20680.c, iam20680.h, invn_selftest.c and invn_selftest.h into kernel/drivers/misc

2. modify Kconfig, example is shown below

config SENSORS_IAM20680
    tristate "INV_MPU Accelerometer and Gyroscope support"
    default n
    depends on I2C
    help
      If you say yes here you get support for InvenSense's
      Accelerometer and Gyroscope sensor.
      
3. modify Makefile, example is shown below

obj-$(CONFIG_SENSORS_IAM20680)  += iam20680.o invn_selftest.o

4. if dts is using, please enable #define INVN_DTS

5. In iam20680.h, choose the correct macro definition between BUS_TYPE_I2C and BUS_TYPE_SPI according to what interface is in use  

6. In iam20680.h, choose the correct macro definition for Invensense chip part number(IAM20680 or ICM20600) 

7. If using INT signal, please assign proper interrupt pin in dts or board config file, for example, using g

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值