Changeset c2fa801 in mainline


Ignore:
Timestamp:
2011-02-27T00:23:19Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2391aaf, 81c508c
Parents:
882f8b1
Message:

Removed unused code.

  • Removed HID descriptor parser (completely).
  • Removed descriptor dump from usbhid makefile (not needed), but retained the source files (may be useful).
  • Lowered log level to INFO.
Location:
uspace/drv/usbhid
Files:
2 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/Makefile

    r882f8b1 rc2fa801  
    3939SOURCES = \
    4040        main.c \
    41         descparser.c \
    42         descdump.c \
    4341        conv.c \
    4442        $(STOLEN_LAYOUT_SOURCES)
  • uspace/drv/usbhid/hid.h

    r882f8b1 rc2fa801  
    4444
    4545/**
    46  *
    47  */
    48 typedef struct {
    49         usb_standard_interface_descriptor_t iface_desc;
    50         usb_standard_endpoint_descriptor_t *endpoints;
    51         usb_standard_hid_descriptor_t hid_desc;
    52         uint8_t *report_desc;
    53         //usb_standard_hid_class_descriptor_info_t *class_desc_info;
    54         //uint8_t **class_descs;
    55 } usb_hid_iface_t;
    56 
    57 /**
    58  *
    59  */
    60 typedef struct {
    61         usb_standard_configuration_descriptor_t config_descriptor;
    62         usb_hid_iface_t *interfaces;
    63 } usb_hid_configuration_t;
    64 
    65 /**
    6646 * @brief USB/HID keyboard device type.
    6747 *
     
    8868} usb_hid_dev_kbd_t;
    8969
    90 // TODO: more configurations!
    91 
    9270#endif
  • uspace/drv/usbhid/main.c

    r882f8b1 rc2fa801  
    5454#include <usb/dp.h>
    5555#include "hid.h"
    56 //#include "descparser.h"
    57 //#include "descdump.h"
    5856#include "conv.h"
    5957#include "layout.h"
     
    916914        }
    917915
     916        usb_log_info("Device initialized.\n");
     917       
    918918        /*
    919919         * Create new fibril for handling this keyboard
     
    948948int main(int argc, char *argv[])
    949949{
    950         usb_log_enable(USB_LOG_LEVEL_MAX, NAME);
     950        usb_log_enable(USB_LOG_LEVEL_INFO, NAME);
    951951        return ddf_driver_main(&kbd_driver);
    952952}
Note: See TracChangeset for help on using the changeset viewer.