- 博客(4)
- 资源 (3)
- 收藏
- 关注
原创 USB-serial 串口测试
驱动支持usb-serial我用的usb-serial接口线是pl2303, 所以linux kernel加入pl2303支持后(或者以模块方式加载),插入usb-serial,系统自动在增加了/dev/ttyUSB0这个设备验证程序接下来就是程序验证一下串口功能,在网上找了一个发送和接收程序,写的相当罗嗦,但是能工作1. receive.c程序清单:#include #include #include #include #include #include #include #include #i
2010-12-25 12:34:00 3992
转载 typeof 的用法
<br />Another way to refer to the type of an expression is with typeof. The syntax of using of<br />this keyword looks like sizeof, but the construct acts semantically like a type name defined<br />with typedef.<br />There are two ways of writing the argum
2010-12-22 16:13:00 1636
原创 container_of的理解
<br />container_of(pointer, container_type, container_field)<br />pointer: 指向被包含的container_field的地址<br />container_type: 包含container_field的结构的类型<br />container_field: container_type中的一个成员名称<br /> <br />该宏通过一个指向container_type 结构内container_field的指针地址,返回这个con
2010-12-22 15:44:00 964
原创 iobase membase mepbase的区别
<br />iobase 是IO端口基地址,使用in/out[bwl] 来访问<br />membase是IO端口的内存地址(映射过的逻辑地址),使用read/write[bwl]访问<br />mapbase描述的是IO端口的物理地址,是硬件定义好的,可以通过ioremap获得对应的逻辑地址<br />
2010-12-22 11:18:00 2252
A COMPACT GUIDE TO LEX & YACC
2010-10-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人