摘要: 首先用cat /proc/bus/input/devices 确定读卡器设备在系统里的注册信息cat /proc/bus/input/devicesI: Bus=0019 Vendor=0001 Product=0001 Version=0100N: Name="gpio-keys"P: Phys=gpio-keys/input0S: Sysfs=/devices/platform/gpio-keys/input/input0U: Uniq=H: Handlers=kbd event0 B: PROP=0B: EV=3B: KEY=1680 0 0 10000002I: B 阅读全文
posted @ 2012-02-12 22:20 陕北蜂农 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 第1步:安装Eclipse 开发环境 http://blog.csdn.net/ex_net/article/details/7251664第2步:配置Eclipse 的arm开发环境 http://blog.csdn.net/ex_net/article/details/7251845第3步:新建一个过程,配置好环境 敲入下面的代码#include <pthread.h>#include <stdio.h>#include <stddef.h>#include <unistd.h>#include <fcntl.h>void *cr 阅读全文
posted @ 2012-02-12 00:33 陕北蜂农 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 第一步:安装JRE 和Eclipse 详细步骤请参考:http://blog.csdn.net/ex_net/article/details/7251664第二步:安装arm-linux-gcc 和 arm-linux-g++ (1)复制arm-linux-gcc-4.3.2.tgz 到 /home/tools 目录下,然后解压缩到 根目录下 / # tar -xvzf arm-linux-gcc-4.3.2.tgz -C / (2)修改环境变量 # gedit /etc/environment 向该配置文件加入::/usr/... 阅读全文
posted @ 2012-02-12 00:20 陕北蜂农 阅读(223) 评论(0) 推荐(0) 编辑