Changeset 506d330 in mainline for uspace/lib/usb/src/host/endpoint.c


Ignore:
Timestamp:
2011-04-07T08:17:21Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
049eb87, 9a7e5b4
Parents:
92d6868
Message:

Implement per endpoint toggle reset

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/host/endpoint.c

    r92d6868 r506d330  
    8080        instance->toggle = 0;
    8181}
     82/*----------------------------------------------------------------------------*/
     83void endpoint_toggle_reset_filtered(link_t *ep, usb_endpoint_t epn)
     84{
     85        endpoint_t *instance =
     86            list_get_instance(ep, endpoint_t, same_device_eps);
     87        assert(instance);
     88        if (instance->endpoint == epn)
     89                instance->toggle = 0;
     90}
    8291/**
    8392 * @}
Note: See TracChangeset for help on using the changeset viewer.