海王  

2010年7月5日

摘要: #include <stdio.h>#include <stdlib.h> int main(){ int i; float a=0.2; float f=0.49; float b = 0.5; float e = 0.51; float c=0.6; float k=0.99; float g = 1.0; float h = 1.1; printf("0.2 : %d... 阅读全文
posted @ 2010-07-05 17:59 海王 阅读(2424) 评论(0) 推荐(0) 编辑
 
摘要: http://www.cppblog.com/prayer/archive/2008/08/21/59572.html udelay(unsigned long usecs);mdelay(unsigned long msecs);前者用软件循环指定的微妙数,后者调用前者达到延迟毫秒级。udelay 函数只能用于获取较短的时间延迟,因为loops_per_second值的精度只有8位,所以,当计算... 阅读全文
posted @ 2010-07-05 15:25 海王 阅读(3581) 评论(0) 推荐(0) 编辑