![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
嵌入式硬件驱动开发
文章平均质量分 67
hope_worker
这个作者很懒,什么都没留下…
展开
-
vxworks下select()的使用 .
转载自:http://blog.csdn.net/bobpipi/article/details/4206809 select()作用是挂起一系列的文件描述符,其API为: int select ( int width, /* number of bits to examine from 0 */ fd_set *转载 2013-04-10 15:43:43 · 2752 阅读 · 0 评论 -
《c primer plus》
Page 342 一. static 变量 在C语言中static关键字有两种含义。 1. 放在函数外表示文件内部可见的全局变量。 2. 放在函数内表示具有代码块作用域的静态变量。 #include void static_test() { /*这条语句并不是一条执行语句,其实testVar只在程序编译时初始化一次,在函数执行时,这条语句是没有的,放在这里只是表示te原创 2013-04-03 16:34:20 · 907 阅读 · 0 评论 -
故障处理_vxwork 大端序和变量指针
1.问题描述 有如下函数 int my_read_reg(euint16 slot, euint16 chip, euint16 reg, euint16 *pvalue) { int rtv = 0; euint32 dwValue = 0; //my_lowlevel_read的作用是读取寄存器里的值 extern eint32 my_lowlev原创 2013-10-11 10:18:26 · 1068 阅读 · 0 评论 -
powerpc汇编指令分析
1基础知识 ØVxworks shell命令 i b&bh&bdall c ti&tt cret:执行到子函数返回,返回后的结果可以在r3寄存器里看到。先b断住子函数,然后用cret taskid,查看r3就知道了子函数返回的结果。 Ø基本指令 stwu r1,-48(r1) : 1) [r1-48]2) r1=原创 2014-07-12 08:09:52 · 9100 阅读 · 0 评论