Changeset 129b821f in mainline for uspace/lib/usbhost
- Timestamp:
 - 2018-01-20T12:34:50Z (8 years ago)
 - Branches:
 - lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
 - Children:
 - 682c9354
 - Parents:
 - 60d3f35
 - git-author:
 - Ondřej Hlavatý <aearsis@…> (2018-01-20 12:33:42)
 - git-committer:
 - Ondřej Hlavatý <aearsis@…> (2018-01-20 12:34:50)
 - Location:
 - uspace/lib/usbhost
 - Files:
 - 
      
- 2 edited
 
- 
          
  include/usb/host/utility.h (modified) (1 diff)
 - 
          
  src/utility.c (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
uspace/lib/usbhost/include/usb/host/utility.h
r60d3f35 r129b821f 48 48 int hc_get_ep0_max_packet_size(uint16_t *, bus_t *, device_t *); 49 49 void hc_reset_toggles(const usb_transfer_batch_t *batch, endpoint_reset_toggle_t); 50 int hc_setup_virtual_root_hub(hc_device_t * );50 int hc_setup_virtual_root_hub(hc_device_t *, usb_speed_t); 51 51 int hc_get_device_desc(device_t *, usb_standard_device_descriptor_t *); 52 52 int hc_get_hub_desc(device_t *, usb_hub_descriptor_header_t *);  - 
      
uspace/lib/usbhost/src/utility.c
r60d3f35 r129b821f 177 177 * @return Error code 178 178 */ 179 int hc_setup_virtual_root_hub(hc_device_t *hcd )179 int hc_setup_virtual_root_hub(hc_device_t *hcd, usb_speed_t rh_speed) 180 180 { 181 181 int err; … … 183 183 assert(hcd); 184 184 185 device_t *dev = hcd_ddf_fun_create(hcd, USB_SPEED_MAX);185 device_t *dev = hcd_ddf_fun_create(hcd, rh_speed); 186 186 if (!dev) { 187 187 usb_log_error("Failed to create function for the root hub.");  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  