上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 138 下一页
摘要: http://www.devbean.net/2011/11/qtcreator-plugin-develop-13/ 阅读全文
posted @ 2015-08-11 17:51 katago 阅读(238) 评论(0) 推荐(0)
摘要: 3.2.7 错误处理 #include char * collect_data(char *userbuffer) { char *buffer; /* ... */ buffer = kmalloc(100, GFP_KERNEL); if (!buf... 阅读全文
posted @ 2015-08-11 17:39 katago 阅读(207) 评论(0) 推荐(0)
摘要: 在Makefile中写shell代码有点诡异,和不同的shell语法不太一样,如果不了解,看Makefile会莫名其妙。下面总结了一些。 1:尽在Makefile文件的目标项冒号后的另起一行的代码才是shell代码。 eg: xx = xx1 // 这里时makefile代码 yy:xx = xx2 // 这是是makefile代码,makefil... 阅读全文
posted @ 2015-08-07 17:10 katago 阅读(961) 评论(0) 推荐(0)
摘要: Ping doesn't work Ping from U-Boot to a host should work. Ping from a host to U-Boot should not. U-Boot uses a polling interface for networking - if you have not run a command, it will not respond t... 阅读全文
posted @ 2015-08-07 17:05 katago 阅读(709) 评论(0) 推荐(0)
摘要: Linux的操作系统I2C驱动架构解说 发布时间:2006.10.16 04:52 来源:赛迪网技术社区 作者:LoneStar 最近因为工作需要涉及到了I2C总线。虽然我过去用过I2c,但看了 Linux kernel 后才发现,一个 layer 能被做到这样完善。 1.Linux的I2C驱动架 Linux中I2C总线的驱动分为两个部分,总线驱动(BUS)和设备驱动(DEVICE)。其... 阅读全文
posted @ 2015-07-30 11:26 katago 阅读(339) 评论(0) 推荐(0)
摘要: 看驱动的时候,时常会有如下代码: .remove = __devexit_p(XX_exit), 这里的__devexit_p有什么作用呢? 我在include/linux/init.h中找到了它的定义: /* Functions marked as __devexit may be discarded at kernel link time, depending on confi... 阅读全文
posted @ 2015-07-24 16:52 katago 阅读(554) 评论(0) 推荐(0)
摘要: http://cs.usfca.edu/~cruse/cs635s05/ 阅读全文
posted @ 2015-07-16 17:59 katago 阅读(151) 评论(0) 推荐(0)
摘要: TEMPLATE = app CONFIG -= qt 阅读全文
posted @ 2015-07-14 16:34 katago 阅读(565) 评论(0) 推荐(0)
摘要: 基于linux-2.6.35的class_create(),device_create解析 作者:苗老师,华清远见嵌入式学院讲师。 从linux内核2.6的某个版本之后,devfs不复存在,udev成为devfs的替代。提醒一点,udev是应用层的,不要试图在内核的配置选项里找到它;加入对udev的支持很简单,以作者所写的一个字符设备驱动为例,在驱动初始化的代码里调用class_create为... 阅读全文
posted @ 2015-07-13 17:01 katago 阅读(373) 评论(0) 推荐(0)
摘要: 在目录的 Makefile 中关于 RTC_DRV_S3C 的编译脚本为: obj -$(CONFIG_RTC_DRV_S3C) += rtc-s3c.o 上述脚本意味着如果 RTC_DRV_S3C 配置选项被选择为“Y” 或“M”,即 obj-$(CONFIG_RTC_ DRV_S3C)等同于 obj-y 或 obj-m 时,则编译 rtc-s3c.c,选“ Y” 的... 阅读全文
posted @ 2015-07-13 17:00 katago 阅读(996) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 138 下一页