2011年6月19日

摘要: 主机系统:Ubuntu 11.04内核版本:Linux Kernel 2.6.39硬件平台:FL2440开发板系统:Linux Kernel 2.6.28转载请标明出处http://blog.csdn.net/yming0221/archive/2011/06/19/6554898.aspx下面是用CPU轮寻的方式来判断AD转换完成的#include <linux/kernel.h>#include <linux/module.h>#include <linux/fs.h>#include <linux/device.h> /*创建设备节点*/# 阅读全文
posted @ 2011-06-19 17:30 yming0221 阅读(281) 评论(0) 推荐(0)
摘要: 用户空间:1.unsigned int sleep(unsigned int seconds); sleep()会使当前程序休眠seconds秒。如果sleep()没睡饱,它将会返回还需要补眠的时间,否则一般返回零。2.void usleep(unsigned long usec);usleep与sleep()类同,不同之处在于休眠的时间单位为毫秒(10E-6秒)。3.int select(0,NULL,NULL,NULL,struct timeval *tv); 可以利用select实现sleep()的功能,它将不会等待任何事件发生。4.int nanosleep(struct timesp 阅读全文
posted @ 2011-06-19 15:28 yming0221 阅读(212) 评论(0) 推荐(0)

导航