[Tutorial] Linux I2C device driver-Linux general technology-Linux programming and kernel information. The following is a detailed description. My ARM platform is Cortex A9. The MSP430 microcontroller communicates with the ARM-core I2C bus. the ARM runs on a Linux system and the Linux kernel has an I2C bus driver.
Therefore, in addition to the MSP430 program, I also need to develop the Linux driver for the MSP430 on the ARM side. Problem:
(1) chip I2C bus driver on the kernel, then I can use the kernel in the application device driver i2c-dev.c open, read, write and other interfaces, instead of re-developing a device driver?
(2) if necessary, how should we develop the corresponding device driver? in Linux, the application layer interfaces are open, release, read, and write? Can I modify only a few external file operation interfaces by referring to the function in the i2c_dev.c file? Or is there any reference program? Or there are examples to help you send the best...
(3) How can I obtain the address of the MSP430 device on the I2C bus?
The entire development process of Linux I2C driver for the first time is also a bit messy. thank you for your guidance !!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.