IIO框架下ICM42686驱动之iio/imu/tdk_icm42686目录下编译配置

驱动路径:kernel/drivers/iio/imu/tdk_icm42686

内核配置:

    Device Drivers
        <*> Industrial I/O support  --->
            Inertial measurement units  --->
                < > TDK ICM42686 SPI driver

为了menuconfig配置及编译icm42686,配置iio/imu/tdk_icm42686路径下的Kconfig和Makefile,如下:

Kconfig :

#
# ICM42686 IMU driver
#

config ICM42686
	tristate
	select IIO_BUFFER
	select IIO_TRIGGERED_BUFFER

config ICM42686_SPI
	tristate "TDK ICM42686 SPI driver"
	depends on SPI
	select ICM42686
	select REGMAP_SPI
	help
	  If you say yes here you get support for ICM42686 IMU on SPI with
	  accelerometer, gyroscope and external ICM42686 magnetometer.

	  This driver can also be built as a module. If so, the module will be
	  called icm42686_spi.

Makefile :

#
# Makefile for TDK ICM42686 IMU
#
obj-$(CONFIG_ICM42686_SPI) += icm42686.o

这两个文件的关联性 :

Kconfig : config ICM42686_SPI

Makefile : obj-$(CONFIG_ICM42686_SPI)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 6
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值