91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

資源簡介

實現了四位八段數碼管的寫操作。可以任意寫入段碼顯示任意數字。包含驅動程序和測試用的應用程序。pxa-270開發板上測試成功。

資源截圖

代碼片段和文件信息

/*?
?*?led8.c
?*?LED?driver
?*/

#include? //?We‘re?doing?kernel?work
#include? //?Specifically?a?module
#include? //?init_module?&?cleanup_module

#include? //?File?operations
#include?? //?for?get_user?and?put_user
#include?? //?ioremap()?iounmap()
#include?? //?ioremap()?iounmap()

#include?“led8.h“
#define?SUCCESS?0

static?int?Device_Open?=?0; //?prevent?concurrent
unsigned?short?*vled1;
unsigned?short?*vled2; //?LED?i/o?remapped?virtual?address

static?int?led_open(struct?inode?*inode?struct?file?*file)
{
dprintk?(“LED?opened(%p)\n“?file);

//?We?don‘t?want?to?talk?to?two?processes?at?the?same?time
if?(Device_Open) return?-EBUSY;

Device_Open++;

????return?SUCCESS;
}

/*?Th

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????1021??2009-12-08?15:12??ledrun.c

?????文件???????3892??2009-12-08?15:29??led8.c

?????文件???????1158??2009-12-08?15:12??led8.h

-----------?---------??----------?-----??----

?????????????????6071????????????????????3


評論

共有 條評論