Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 3035323 in mainline


Ignore:
Timestamp:
2017-11-22T13:54:05Z (4 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master
Children:
b60eac1
Parents:
a0e09ef
Message:

usb: move usb setup packet size to libusb

Location:
uspace/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/request.h

    ra0e09ef r3035323  
    7171#define USB_ENDPOINT_STATUS_HALTED ((uint16_t)(1 << 0))
    7272
     73/** Size of the USB setup packet */
     74#define USB_SETUP_PACKET_SIZE 8
     75
    7376/** Device request setup packet.
    7477 * The setup packet describes the request.
     
    108111} __attribute__ ((packed)) usb_device_request_setup_packet_t;
    109112
    110 static_assert(sizeof(usb_device_request_setup_packet_t) == 8);
     113static_assert(sizeof(usb_device_request_setup_packet_t) == USB_SETUP_PACKET_SIZE);
    111114
    112115/** How many toggles need to be reset */
  • uspace/lib/usbhost/include/usb/host/usb_transfer_batch.h

    ra0e09ef r3035323  
    4646#include <errno.h>
    4747#include <stdint.h>
    48 
    49 #define USB_SETUP_PACKET_SIZE 8
    5048
    5149typedef struct endpoint endpoint_t;
Note: See TracChangeset for help on using the changeset viewer.