Ignore:
Timestamp:
2012-12-22T23:20:45Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3c4663e
Parents:
a6a9910
Message:

libusbhost: Use callback wrapper for toggle handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhost/src/usb_transfer_batch.c

    ra6a9910 r1affef2f  
    125125        /* NOTE: Only one of these pointers should be set. */
    126126        if (instance->callback_out) {
    127                 /* Check for commands that reset toggle bit */
    128                 if (instance->ep->transfer_type == USB_TRANSFER_CONTROL
    129                     && error == EOK) {
    130                         const usb_target_t target =
    131                             {{ instance->ep->address, instance->ep->endpoint }};
    132                         reset_ep_if_need(fun_to_hcd(instance->fun), target,
    133                             instance->setup_buffer);
    134                 }
    135127                instance->callback_out(error, instance->arg);
    136128        }
Note: See TracChangeset for help on using the changeset viewer.