w00000000000t
[ppcskel.git] / usb / core / usb.c
index 935e36f7ac799cd26f8e421cd0336073b15aa1fa..0a0cd7e3d8f60d769e3a07e929b6e3cce18dc652 100644 (file)
@@ -310,7 +310,7 @@ u8 usb_get_configuration(struct usb_device *dev)
 s8 usb_set_configuration(struct usb_device *dev, u8 configuration)
 {
        cleargbuf();
-       usb_control_msg(dev, 0x00, SET_CONFIGURATION, configuration<<8, 0, 0, gbuf, 0);
+       usb_control_msg(dev, 0x00, SET_CONFIGURATION, configuration, 0, 0, gbuf, 0);
        printf("=============\nafter usb_set_configuration:\n");
        hexdump((void*) gbuf, 8);
        wait_ms(20);
@@ -389,7 +389,7 @@ s8 usb_interrupt_read(struct usb_device *dev, u8 ep, u8 *buf, u8 size, u8 timeou
 {
        struct usb_irp *irp = (struct usb_irp*)malloc(sizeof(struct usb_irp));
        irp->dev = dev;
-       irp->endpoint = ep | 0x80; //from device to host
+       irp->endpoint = ep; //wtf? |80; //from device to host
        irp->epsize = dev->epSize[ep]; // ermitteln
        irp->type = USB_INTR;