06 2011 档案

Linux驱动学习——网络接口DM9000驱动学习 mini2440
摘要:网络接口DM9000驱动学习:/drivers/input/touchscreen/s3c2410_ts.c/drivers/input/s3c2410_ts.c参考:http://blogold.chinaunix.net/u3/118227/showart_2353723.htmlhttp://blog.csdn.net/ypoflyer/archive/2011/02/26/6209922.aspx等其他网络资料首先看一下DM9000的引脚和MINI2440的引脚连接DM9000MINI2440功能描述SD0DATA0数据信号||SD15DATA15数据信号CMDADDR2识别为地址还是 阅读全文

posted @ 2011-06-29 23:13 yanhc 阅读(3634) 评论(0) 推荐(0)

Linux触摸屏驱动学习,mini2440
摘要:触摸屏驱动学习:/drivers/input/touchscreen/s3c2410_ts.c/drivers/input/s3c2410_ts.c参考:http://blog.csdn.net/satanwxd/archive/2010/02/02/5279595.aspx等其他网络资料static int__init s3c2410ts_init(void)1.获得时钟adc_clock = clk_get(NULL, "adc"); //linux2.4内核好像不需要获取时钟,所以功耗高些,2.使能时钟clk_enable(adc_clock); //linux2.6 阅读全文

posted @ 2011-06-27 21:18 yanhc 阅读(2102) 评论(0) 推荐(0)

Linux驱动中相关函数查询
摘要:request_irq()在linux内核中用于申请中断的函数是request_irq(),函数原型在Kernel/irq/manage.c中定义:int request_irq(unsigned int irq, irq_handler_t handler, unsigned long irqflags, const char *devname, void *dev_id)irq是要申请的硬件中断号。handler是向系统注册的中断处理函数,是一个回调函数,中断发生时,系统调用这个函数,dev_id参数将被传递给它。irqflags是中断处理的属性,若设置了IRQF_DISABLED(老版本 阅读全文

posted @ 2011-06-26 21:48 yanhc 阅读(1035) 评论(0) 推荐(0)

Linux socket编程 服务器 客户端
摘要:根据网上的程序修改的,感谢! 另外有个Linux网络调试工具,tcpdump,类似xp上的wireshark,使用介绍: http://tcpdump.anheng.com.cn/news/24/586.html服务器端: /* socksrv.c*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <sys/socket.h>#include <netinet/in.h> /* for struct 阅读全文

posted @ 2011-06-25 15:56 yanhc 阅读(687) 评论(0) 推荐(0)

Linux内核运行机制学习笔记
摘要:等待队列参考:http://blog.csdn.net/murui/archive/2008/04/23/2318280.aspxhttp://blog.ednchina.com/tiloog/133368/message.aspxhttp://blogold.chinaunix.net/u2/73528/showart_1108420.html什么是等待队列? 在软件开发中任务经常由于某种条件没有得到满足而不得不进入睡眠状态,然后等待条件得到满足的时候再继续运行,进入运行状态。这种需求需要等待队列机制的支持。Linux中提供了等待队列的机制,该机制在内核中应用很广泛。 在Linux内核中使用 阅读全文

posted @ 2011-06-24 10:56 yanhc 阅读(2397) 评论(0) 推荐(0)

Linux 驱动学习笔记
摘要:最近用mini2440学习linux驱动,做一下笔记LED驱动:static int __init dev_init(void)在驱动的初始化函数中经常看到,__init 前缀,这个在下面文件中定义file:/include/linux/init.h/* These macros are used to mark some functions or * initialized data (doesn't apply to uninitialized data) * as `initialization' functions. The kernel can take this * 阅读全文

posted @ 2011-06-22 23:19 yanhc 阅读(496) 评论(0) 推荐(0)

modelsim testbench测试DFF触发器verilog
摘要:module tb_DFF ( clk, d, q ); input clk; input d; output q; reg q; always @ (posedge clk) q <= d; endmodule 测试文件: `timescale 1ns / 1psmodule ttbb_DFF; // Inputs reg clk; reg d; // Outputs wire q; // Instantiate the Unit Under Test (UUT) tb_DFF uut ( .clk(clk), .d(d), .q(q) ); initial beg... 阅读全文

posted @ 2011-06-09 11:28 yanhc 阅读(1396) 评论(0) 推荐(0)

Source Insight的一些使用技巧
摘要:显示/隐藏行号:(option->document option->editing options中,show line numbers)改变字体(默认的字体太小):(option->document option->font options中) 阅读全文

posted @ 2011-06-05 11:12 yanhc 阅读(217) 评论(0) 推荐(0)

PXA270的CE的BSP为什么叫bvdmain?
摘要:http://bak1.beareyes.com.cn/2/lib/200302/20/20030220227.htm英特尔新添一款PDA专用的XScale处理器,这款新开发中的处理器代号为Bulverde。由这里就应该可以知道为什么PXA270的wince的BSP叫bvdmain了,改成pxamain或许更好理解一些,可能在开发阶段只能用代号以保密。 阅读全文

posted @ 2011-06-05 10:46 yanhc 阅读(211) 评论(0) 推荐(0)

导航