gpt4 book ai didi

linux-kernel - Linux 中的 I2C 驱动程序

转载 作者:行者123 更新时间:2023-12-04 11:17:19 25 4
gpt4 key购买 nike

关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。












想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。

4年前关闭。




Improve this question




我知道 I2C 处于非常基本的级别,它依赖于 linux 内核,但没有实现基本 I2C 驱动程序的线索。

试图在 开始I2C 设备驱动。
你能推荐任何带有源代码映射的初学者教程吗!!

最佳答案

linux-source/Documentation/i2c/有很多你需要的信息。 .../writing-clients.txt 是一个很好的起点。

看看在线版本:

https://www.kernel.org/doc/Documentation/i2c/writing-clients

有一个不错的教程:

http://renjucnair.blogspot.ca/2012/01/writing-i2c-client-driver.html

这是对某人编写 i2c 驱动程序并对其具有教程感觉的很好的评论:

http://www.embedded-bits.co.uk/2009/i2c-in-the-2632-linux-kernel/

下面是一些示例代码:

http://code.google.com/p/ldd-templates/source/browse/drivers/i2c/sample-i2c-client.c

关于linux-kernel - Linux 中的 I2C 驱动程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16728587/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com