Changeset - 2b2ad8e7cb9f
[Not reviewed]
default
0 7 0
Drew Perttula - 12 years ago 2013-06-07 06:40:07
drewp@bigasterisk.com
update dmx_usb. ok on kernel 3.5.0
Ignore-this: 207b5a346c5e1e781d46ddcb44d510bf
7 files changed with 16 insertions and 10 deletions:
0 comments (0 inline, 0 general)
dmx_usb_module/.git/config
Show inline comments
 
[core]
 
	repositoryformatversion = 0
 
	filemode = true
 
[remote "github"]
 
	url = git://github.com/lowlander/dmx_usb_module.git
 
	fetch = +refs/heads/master:refs/remotes/github/master
dmx_usb_module/.git/index
Show inline comments
 
binary diff not shown
dmx_usb_module/.git/refs/heads/master
Show inline comments
 
3bfaeb835bec3d26d8ae0fd9d6b9b1dc15eafa7a
 
74a4067667b4d009d33ce7f52045786735b0a137
dmx_usb_module/Makefile
Show inline comments
 
@@ -13,7 +13,7 @@ PWD	:= $(shell pwd)
 

	
 
default:
 
	$(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules
 
	gcc -O2 -pipe dmx_usb_test.c -o dmx_usb_test
 
	gcc -O2 -pipe -Wall dmx_usb_test.c -o dmx_usb_test
 

	
 
endif
 

	
 
@@ -23,7 +23,6 @@ clean:
 
	rm -f dmx_usb.mod.c
 
	rm -f .dmx_usb.*
 
	rm -rf .tmp_versions
 
	rm -f Module.markers  modules.order  Module.symvers
 

	
 

	
 
drew:
 
	gcc dmx_usb.c -o dmx_usb.o -I/usr/src/linux-source-2.6.15/include
 
\ No newline at end of file
dmx_usb_module/dmx_usb.c
Show inline comments
 
@@ -50,6 +50,10 @@
 
#define info(format, arg...) do { printk(KERN_INFO __FILE__ ": " format "\n" , ## arg); } while (0)
 
#endif
 

	
 
#ifndef err
 
#define err(format, arg...) do { printk(KERN_INFO __FILE__ ": (error) " format "\n" , ## arg); } while (0)
 
#endif
 

	
 
/* Version Information */
 
#define DRIVER_VERSION "v0.1.20111215"
 
#define DRIVER_AUTHOR "Erwin Rol, erwin@erwinrol.com"
 
@@ -631,8 +635,8 @@ static int dmx_usb_probe(struct usb_inte
 
	int retval = -ENOMEM;
 

	
 
	/* See if the device offered us matches what we can accept */
 
	if ((udev->descriptor.idVendor != FTDI_VID) ||
 
	    (udev->descriptor.idProduct != FTDI_8U232AM_PID)) {
 
	if ((le16_to_cpu(udev->descriptor.idVendor) != FTDI_VID) ||
 
	    (le16_to_cpu(udev->descriptor.idProduct) != FTDI_8U232AM_PID)) {
 
		return -ENODEV;
 
	}
 

	
dmx_usb_module/dmx_usb_test.c
Show inline comments
 
@@ -23,7 +23,7 @@ int main(int argc, char* argv[])
 
	}
 

	
 
	for (i = 0; i < 513;i++) {
 
		buffer[i] = 0x00;	
 
		buffer[i] = i;	
 
	}
 

	
 
	buffer[512] = 0x55;
dmx_usb_module/pyout
Show inline comments
 

	
 
from dmx import Dmx
 

	
 
d = Dmx()
 
d = Dmx(port="/dev/dmx1")
 
while 1:
 
    d.write("\xff" * 100, times=1)
 

	
 
    d.write("\x00" * 100)
 
    print "wrote"
0 comments (0 inline, 0 general)