Wednesday, February 11, 2015

Linux I2C Driver

 

linux-source/Documentation/i2c/ has lot of the information you'd need. .../writing-clients.txt is a good place to start.

Have a look at the online version:

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

There is an okay sort of a tutorial at:

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

Here is a good commentary on someone writing an i2c driver and has a tutorial feel to it:

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

Here is some sample code:

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

Reference

http://stackoverflow.com/questions/16728587/i2c-driver-in-linux

No comments:

Post a Comment

Register Transfer Level Design with Verilog (1) [ebook]

設計程式之所以有趣不外乎是它的千變萬化,同樣的結果卻有不同的寫法。 但這些不同寫法當中也並沒有分誰對誰錯,也沒有制定標準來規範何事該用何解。 這也就是我們設計者的珍貴!! [1] Primitive Instantiations 在Verilog中最基本的邏輯...