* wIndex = 0
* wLength = 8 (in Bytes!?)
*/
- usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
+ usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE << 8, 0, 64, buf, 8, 0);
+ //usb_control_msg(dev, 0x80, GET_DESCRIPTOR, DEVICE, 0, 64, buf, 8, 0);
/*
* length (here =64) should be "number of byte to transfer", not
/**** send token ****/
printf("togl: %d\n", togl);
hcdi_enqueue(td);
- break;
#if 0
+ break;
memcpy(td->buffer, mybuf, td->actlen);
#endif
irp->epsize = dev->bMaxPacketSize0;
irp->type = USB_CTRL;
-#if 1
+#if 0
buf[0]=(char)requesttype;
buf[1]=(char)request;
buf[2]=(char)(value >> 8);
buf[6]=(char)(length);
buf[7]=(char)(length >> 8);
#endif
-#if 0
+#if 1
//should be the right way around? :O
buf[0]=(char)requesttype;
buf[1]=(char)request;
* Enqueue a transfer descriptor.
*/
u8 hcdi_enqueue(usb_transfer_descriptor *td) {
- control_quirk(); //required? YES! :O ... erm... or no? :/
+ //control_quirk(); //required? YES! :O ... erm... or no? :/
u32 tmptdbuffer;
static struct endpoint_descriptor dummyconfig;