Changeset 0aae4a6a in mainline for uspace/lib/usb/src/host/endpoint.c
- Timestamp:
- 2011-04-07T07:32:46Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 92d6868
- Parents:
- fc9f88d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/src/host/endpoint.c
rfc9f88d r0aae4a6a 37 37 #include <usb/host/endpoint.h> 38 38 39 int endpoint_init(endpoint_t *instance, usb_transfer_type_t transfer_type, 40 usb_speed_t speed, size_t max_packet_size) 39 int endpoint_init(endpoint_t *instance, usb_address_t address, 40 usb_endpoint_t endpoint, usb_direction_t direction, 41 usb_transfer_type_t type, usb_speed_t speed, size_t max_packet_size) 41 42 { 42 43 assert(instance); 43 link_initialize(&instance->same_device_eps); 44 instance->transfer_type = transfer_type; 44 instance->address = address; 45 instance->endpoint = endpoint; 46 instance->direction = direction; 47 instance->transfer_type = type; 45 48 instance->speed = speed; 46 49 instance->max_packet_size = max_packet_size; 47 50 instance->toggle = 0; 51 link_initialize(&instance->same_device_eps); 48 52 return EOK; 49 53 }
Note:
See TracChangeset
for help on using the changeset viewer.