摘要: open.setOnCheckedChangeListener(new OnCheckedChangeListener() {@Overridepublic void onCheckedChanged(CompoundButton buttonView,boolean isChecked) {// ... 阅读全文
posted @ 2014-10-14 15:12 luxiaolai 阅读(4293) 评论(0) 推荐(0) 编辑
摘要: ./autogen.sh#sleep 10./configure --prefix=/usr/lxl/tslib --host=arm-linux CC=arm-linux-gcc#sleep 100./make;make install 阅读全文
posted @ 2014-10-09 21:53 luxiaolai 阅读(248) 评论(0) 推荐(0) 编辑
摘要: matlab中写个函数,在主程序中调用该函数的方法跟其它的编程语言都一样,但是子函数与主函数要存于不同的文件中,文件名就是函数名字。文件必须保存在current directory中,才能调用。函数的基本结构:function [返回变量列表]=函数名(输入变量列表)%注释说明语句输入、返回变量格式... 阅读全文
posted @ 2014-10-08 19:54 luxiaolai 阅读(1840) 评论(0) 推荐(0) 编辑
摘要: static irqreturn_t pm_interrupt(struct serio *serio,unsigned char data, unsigned int flags){struct pm *pm = serio_get_drvdata(serio);struct input_dev ... 阅读全文
posted @ 2014-10-05 17:30 luxiaolai 阅读(1812) 评论(0) 推荐(0) 编辑
摘要: (*synthesis,keep*)(*synthesis,probe_port,keep *)例:(*synthesis,probe_port,keep *) wire e;可用于wire型和reg型。 阅读全文
posted @ 2014-09-25 21:32 luxiaolai 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 今天调一个程序调了半天,发现应用程序的ioctl的cmd参数传送到驱动程序的ioctl发生改变。而根据《linux设备驱动》这个cmd应该是不变的。因为在kernel 2.6.36 中已经完全删除了struct file_operations 中的ioctl 函数指针,取而代之的是unlocked_... 阅读全文
posted @ 2014-09-24 20:52 luxiaolai 阅读(1795) 评论(0) 推荐(0) 编辑
摘要: 目的:在drivers目录下添加一个简单的驱动目录mytest,在make menuconfig配置面板里面获得对应配置项,由于暂不涉及编译这一步,所以只在mytest里面添加一人Kconfig,没加对应的代码文件以及Makefile操作:1.在drivers/Kconfig里添加一行 source... 阅读全文
posted @ 2014-08-26 18:58 luxiaolai 阅读(295) 评论(0) 推荐(0) 编辑
摘要: linux内核打印"BUG: scheduling while atomic"和"bad: scheduling from the idle thread"错误的时候,通常是在中断处理函数中调用了可以休眠的函数,如semaphore,mutex,sleep之类的可休眠的函数,而linux内核要求在中... 阅读全文
posted @ 2014-07-21 16:40 luxiaolai 阅读(2580) 评论(0) 推荐(0) 编辑
摘要: /*****************************************************************************Copyright: 2014,TkaiFile name: main.cDescription:28335外部中断测试Author: Vers... 阅读全文
posted @ 2014-05-27 20:31 luxiaolai 阅读(2475) 评论(0) 推荐(0) 编辑
摘要: lib/libQtGui.so: undefined reference to `ts_read_raw'/lib/libQtGui.so: undefined reference to `ts_open'/lib/libQtGui.so: undefined reference to `ts_fd... 阅读全文
posted @ 2014-05-23 15:53 luxiaolai 阅读(6004) 评论(0) 推荐(1) 编辑