Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 1b29d6fa in mainline


Ignore:
Timestamp:
2010-12-12T22:28:30Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master
Children:
9fe6e7d
Parents:
647492b
Message:

Fix wrong polling endpoint in keyboard driver

Location:
uspace
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/main.c

    r647492b r1b29d6fa  
    3939#define NAME "usbkbd"
    4040
    41 static const usb_endpoint_t CONTROL_EP = 0;
     41#define GUESSED_POLL_ENDPOINT 1
    4242
    4343/*
     
    155155
    156156        // default endpoint
    157         kbd_dev->default_ep = CONTROL_EP;
     157        kbd_dev->poll_endpoint = GUESSED_POLL_ENDPOINT;
    158158       
    159159        /*
     
    204204        usb_target_t poll_target = {
    205205                .address = kbd_dev->address,
    206                 .endpoint = kbd_dev->default_ep
     206                .endpoint = kbd_dev->poll_endpoint
    207207        };
    208208
  • uspace/lib/usb/include/usb/classes/hid.h

    r647492b r1b29d6fa  
    100100        device_t *device;
    101101        usb_address_t address;
    102         usb_endpoint_t default_ep;
     102        usb_endpoint_t poll_endpoint;
    103103        usb_hid_report_parser_t *parser;
    104104} usb_hid_dev_kbd_t;
Note: See TracChangeset for help on using the changeset viewer.