CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - LED LINU
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - LED LINU - List
[
Embeded Linux
]
led_linux2.4.18
DL : 0
Linux 2.4.18 s3c2440 led driver 使用dev-C++撰寫,需要linux 2.4.18 kernel include,編譯完成後產生led module。 insmod main.o //安裝模組 mknod /dev/leds c 221 0 使用方法: int main(int argc, char *argv[]) { int testdev //led test... testdev = open("/dev/QuickMarkLed",O_RDWR) ioctl(testdev, 2, 1) //ioctl(device, led number, open/close) open=1 ioctl(testdev, argv[1][0]- 0 , argv[2][0]- 0 ) //ioctl(device, led number, open/close) open=1 close(testdev) return 0 } -Linux 2.4.18 s3c2440 led driver to use dev-C++ Writing, the need for linux 2.4.18 kernel include, compiled after the completion of led module. insmod main.o// install the module mknod/dev/leds c 221 0 to use: int main (int argc, char* argv []) (int testdev// led test ... testdev = open (/ dev/QuickMarkLed , O_RDWR) ioctl (testdev, 2, 1)// ioctl (device, led number, open/close) open = 1 ioctl (testdev, argv [1] [0]- 0, argv [2] [0]- 0 )// ioctl (device, led number, open/close) open = 1 close (testdev) return 0)
Date
: 2025-07-12
Size
: 5kb
User
:
Jia-Yang Chen
[
Linux driver
]
linu-MIPS-for-RT5300-led-driver
DL : 0
Linux led 驱动 处理器为MIPS架构的RT53-Linux led driver for MIPS RT5300
Date
: 2025-07-12
Size
: 6kb
User
:
yanyijin
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.