Changes in uspace/lib/usbdev/src/request.c [3238506:095bddfc] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbdev/src/request.c
r3238506 r095bddfc 143 143 */ 144 144 145 usb_device_request_setup_packet_t setup_packet; 146 setup_packet.request_type = 128 | (request_type << 5) | recipient; 147 setup_packet.request = request; 148 setup_packet.value = value; 149 setup_packet.index = index; 150 setup_packet.length = (uint16_t) data_size; 151 152 int rc = usb_pipe_control_read(pipe, 153 &setup_packet, sizeof(setup_packet), 145 const usb_device_request_setup_packet_t setup_packet = { 146 .request_type = SETUP_REQUEST_TYPE_DEVICE_TO_HOST 147 | (request_type << 5) | recipient, 148 .request = request, 149 .value = value, 150 .index = index, 151 .length = (uint16_t) data_size, 152 }; 153 154 return usb_pipe_control_read(pipe, &setup_packet, sizeof(setup_packet), 154 155 data, data_size, actual_data_size); 155 156 return rc;157 156 } 158 157 … … 276 275 } 277 276 278 uint16_t wValue = descriptor_index | (descriptor_type << 8);277 const uint16_t wValue = descriptor_index | (descriptor_type << 8); 279 278 280 279 return usb_control_request_get(pipe,
Note:
See TracChangeset
for help on using the changeset viewer.