Description: 1 first load the driver of insmod smart210_led.ko
2.open (" /dev/ device file name, " O_RDWR)
3 with IOCTL (FD, LED_ON, value) LED operation
The second parameter can be LED_ON, LED_OFF, LED_ALL
When LED_ON third parameters only value of 1-4 (light fixed led, that if the third parameters for the 3 said light third LED)
When LED_OFF third parameters only value of 1-4 (that goes out the fixed led, if the third parameters for the 3 represent the third led out)
When LED_OFF third parameter 0-15 values of third parameters into four bit binary, each corresponding to a LED, light is 1, out of 0
To Search:
File list (Check if you may need any files):
led可自动生成设备文件
.....................\.smart210_led.ko.cmd
.....................\.smart210_led.mod.o.cmd
.....................\.smart210_led.o.cmd
.....................\.tmp_versions
.....................\.............\smart210_led.mod
.....................\Makefile
.....................\Makefile~
.....................\Module.symvers
.....................\led_app.c
.....................\led_app.c~
.....................\ledapp
.....................\led使用手册
.....................\modules.order
.....................\smart210_led.c
.....................\smart210_led.c~
.....................\smart210_led.h
.....................\smart210_led.h~
.....................\smart210_led.ko
.....................\smart210_led.mod.c
.....................\smart210_led.mod.o
.....................\smart210_led.o