All pastes #584781 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-22 22:33 UTC
rendered paste body
Index: testprograms/m5602_tibor/pusb-linux.c
===================================================================
--- testprograms/m5602_tibor/pusb-linux.c       (revision 78)
+++ testprograms/m5602_tibor/pusb-linux.c       (working copy)
@@ -273,15 +273,15 @@
                   request_type, request, value, index);
        dump(buf, size);
 */
-#if FC5
-       ctrl.requesttype = request_type;
-       ctrl.request     = request;
-       ctrl.value       = value;
-       ctrl.index       = index;
-       ctrl.length      = size;
-       ctrl.timeout     = timeout;
-       ctrl.data        = buf;
-#else
+//#if FC5
+  //   ctrl.requesttype = request_type;
+  //ctrl.request     = request;
+  //ctrl.value       = value;
+  //ctrl.index       = index;
+  //ctrl.length      = size;
+  //ctrl.timeout     = timeout;
+  //ctrl.data        = buf;
+  //#else
   ctrl.bRequestType = request_type;
   ctrl.bRequest     = request;
   ctrl.wValue       = value;
@@ -289,7 +289,7 @@
   ctrl.wLength      = size;
   ctrl.timeout     = timeout;
   ctrl.data        = buf;
-#endif
+  //#endif

   res = (ioctl(dev->fd, USBDEVFS_CONTROL, &ctrl));
   printf("ioctl return value was: %d\n", res);
Index: testprograms/m5602_tibor/pusb-linux.h
===================================================================
--- testprograms/m5602_tibor/pusb-linux.h       (revision 78)
+++ testprograms/m5602_tibor/pusb-linux.h       (working copy)
@@ -1,6 +1,6 @@
 #define __KERNEL__
-// #include <linux/types.h>
-// #include <linux/mod_devicetable.h>
+#include <linux/types.h>
+#include <linux/mod_devicetable.h>
 #undef __KERNEL__
 #include <linux/usb.h>
 #include <linux/usbdevice_fs.h>