2016年6月1日

摘要: 环境配置: Window7 32-bit OS + VMware Workstation 6.5 + Ubuntu9.10 FORLINX OK6410A开发板 嵌入式Linux驱动开发环境的搭建 1. 安装arm-linux-gcc交叉编译器,并设置环境变量 2. 将飞凌提供的FORLINX_li 阅读全文
posted @ 2016-06-01 23:11 茵纸 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 裸机下控制LED灯非常方便,只需要配置好GPIO引脚功能,然后向GPIO引脚映射的内存地址处写入数据即可,但linux下驱动就不那么简单了,需要结合字符设备驱动的架构,然后将功能实现添加进去,笔者参考linux设备驱动程序(第三版)中介绍的新的接口来实现驱动。友善之臂官网提供的源码是基于miscde 阅读全文
posted @ 2016-06-01 23:07 茵纸 阅读(129) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h> /* count lines in input */ main() { int c, nl; nl = 0; while ((c = getchar()) != EOF) if (c == '\n') ++nl; printf("%d\n", nl); } #i 阅读全文
posted @ 2016-06-01 23:05 茵纸 阅读(134) 评论(0) 推荐(0) 编辑

导航