The programmable LED driver is for moxa DA-682A, DA-820 embedded computer. /dev/pled is the entry point for trun on/off the programmable LED. You can use the `echo 00000001` to turn on the first LED. Or write your program used open(), write() and close() system call to control the LED. Following describes how to compile this driver.

1. Setting the path to your kernel source tree in Makefile.

	To compile this driver, you should modify the KDIR to the path of your kernel source. We configure the KDIR in Makefile for configuring the path of the kernel source.

	The original KDIR

	KDIR:=$(ROOTDIR)/$(LINUXDIR)

	The new KDIR

	KDIR=/media/Home/work/x86/kernel/linux-source-3.2

2. Compile your kernel before makeing the module.

3. Compile the driver after your kernel source has compiled.

	$ cd /home/jared_wu/git/DA-682A/modules/moxa_DA682A_pled
	$ make
	  Building modules, stage 2.
	  MODPOST 2 modules
	  CC      /home/jared_wu/git/DA-682A/modules/moxa_DA682A_pled/moxa-pled.o
	  LD [M]  /home/jared_wu/git/DA-682A/modules/moxa_DA682A_pled/moxa-pled.ko

4. Load this driver

	You can copy it to target and load it.

	$ insmod /PATH/TO/moxa-pled.ko

5. Turn on/of the LED

	Turn on the first LED.

	$ echo "00000001" >/dev/pled

	Turn off the first LED.

	$ echo "00000000" >/dev/pled
