发布时间:2014-05-19 16:27:11
sudo apt-get update sudo apt-get install -y git gnupg flex bison gperf build-essential sudo apt-get install -y zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev sudo apt-get install -y libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 sudo apt-get install.........【阅读全文】
发布时间:2013-11-01 16:21:27
I2C 总线及device注册过程首先,I2C注册过程为创建board_info 结构体。 [cpp] view plaincopyprint?static struct i2c_board_info i2c1_devs[]__initdata = { { &.........【阅读全文】
发布时间:2013-11-01 09:24:50
不管怎样,先列出在linux2.6.32.2下最简短的i2c程序,因为在跟踪内核代码的过程中你会关注到它。一、最简驱动/* at24c08.c */#include <linux/init.h>#include <linux/module.h>#include <linux/i2c.h>static int at24c08_probe(struct i2c_client *client, cons.........【阅读全文】