Changes in / [22ded10:3b5d5b9d] in mainline


Ignore:
Location:
uspace
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    r22ded10 r3b5d5b9d  
    10461046                free((*kbd_dev)->led_data);
    10471047        }
     1048        if ((*kbd_dev)->output_buffer != NULL) {
     1049                free((*kbd_dev)->output_buffer);
     1050        }
    10481051        if ((*kbd_dev)->led_path != NULL) {
    10491052                usb_hid_report_path_free((*kbd_dev)->led_path);
  • uspace/lib/usb/include/usb/classes/hidpath.h

    r22ded10 r3b5d5b9d  
    4343 * Description of path of usage pages and usages in report descriptor
    4444 */
    45 /** Wanted usage path must be exactly the same as the searched one */
    4645#define USB_HID_PATH_COMPARE_STRICT                             0
    47 /** Wanted usage path must be the suffix in the searched one */
    48 #define USB_HID_PATH_COMPARE_END                        1
    49 /** */
     46#define USB_HID_PATH_COMPARE_END                                1
    5047#define USB_HID_PATH_COMPARE_USAGE_PAGE_ONLY    4
    5148#define USB_HID_PATH_COMPARE_COLLECTION_ONLY    2 /* porovnava jenom cestu z Kolekci */
    52 /** Searched usage page must be prefix of the other one */
    53 #define USB_HID_PATH_COMPARE_BEGIN              8
    54 /** Searched couple of usage page and usage can be anywhere in usage path */
    55 #define USB_HID_PATH_COMPARE_WHERE              16
    56 /**
    57  * TODO
    58  *  * porovnani zacatek - neni to to samy jako COLLECTION ONLY?? -- TEST
    59  *  * porovnani kdekoliv (jenom s delkou 1 at si to moc nekomplikujem)
    60  */
    6149
    6250
  • uspace/lib/usb/include/usb/classes/hidtypes.h

    r22ded10 r3b5d5b9d  
    165165        /** */ 
    166166        link_t link;
    167 
    168         int in_delimiter;
    169167} usb_hid_report_item_t;
    170168
  • uspace/lib/usb/src/hiddescriptor.c

    r22ded10 r3b5d5b9d  
    4141#include <assert.h>
    4242
    43 
    44 #define OUTSIDE_DELIMITER_SET   0
    45 #define START_DELIMITER_SET     1
    46 #define INSIDE_DELIMITER_SET    2
    47        
    4843/** The new report item flag. Used to determine when the item is completly
    4944 * configured and should be added to the report structure
     
    272267                return ENOMEM;
    273268        }
    274         usb_hid_report_path_append_item(usage_path, 0, 0);     
    275269       
    276270        while(i<size){ 
     
    448442                       
    449443                case USB_HID_REPORT_TAG_COLLECTION:
    450                         //TODO: usage_path->flags = *data;
    451                        
    452                         usb_log_debug("APPENDED ITEM TO USAGE PATH (PAGE %d, USAGE %d\n", report_item->usage_page, report_item->usages[report_item->usages_count-1]);
    453                         usb_hid_print_usage_path(usage_path);
    454 
    455                         // set last item
    456                         usb_hid_report_set_last_item(usage_path, USB_HID_TAG_CLASS_GLOBAL, report_item->usage_page);
    457                         usb_hid_report_set_last_item(usage_path, USB_HID_TAG_CLASS_LOCAL, report_item->usages[report_item->usages_count-1]);
    458                         // append the new one which will be set by common
    459                         // usage/usage page
    460                         usb_hid_report_path_append_item(usage_path, report_item->usage_page, report_item->usages[report_item->usages_count-1]);
    461                         usb_hid_print_usage_path(usage_path);
    462 
     444                        // TODO usage_path->flags = *data;
     445                        usb_hid_report_path_append_item(usage_path, report_item->usage_page, report_item->usages[report_item->usages_count-1]);                                         
    463446                        usb_hid_report_reset_local_items (report_item);
    464447                        return USB_HID_NO_ACTION;
     
    596579                        break;                 
    597580                case USB_HID_REPORT_TAG_DELIMITER:
    598                         if (report_item->in_delimiter == OUTSIDE_DELIMITER_SET) {
    599                                 report_item->in_delimiter = START_DELIMITER_SET;
    600                         }
    601                         else {
    602                                 report_item->in_delimiter = OUTSIDE_DELIMITER_SET;
    603                         }
    604                        
     581                        //report_item->delimiter = usb_hid_report_tag_data_uint32(data,item_size);
     582                        //TODO:
     583                        //      DELIMITER STUFF
    605584                        break;
    606585               
Note: See TracChangeset for help on using the changeset viewer.