The Linux USB Input Subsystem 練習

請參考以下網站 -The Linux USB Input Subsystem, Part I
http://www.linuxjournal.com/article/6396
但由於網站上的linux kernel是 2.5的,如果你的 kernel是3.2以上(用uname -rv指令觀看),有些部分需要修改
網站上提到的Listing 1. event-dev-struct.txt,應該是 input.h位於
kernle/include/linux/input.h
Listing 2. register.c 內容針對 kernel 3.2以上要修改為以下內容

Listing 3. aaaabbbb.c 內容針對 kernel 3.2以上要修改為以下內容

Listing 4. squares.c 內容針對 kernel 3.2以上要修改為以下內容

 https://github.com/Ypsclub/register

arrow
arrow

    CuteParrot 發表在 痞客邦 留言(0) 人氣()