Changeset ae3a941 in mainline for uspace/lib/usb/include/usb/usb.h
- Timestamp:
- 2018-02-26T16:51:40Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e773f58
- Parents:
- 3692678
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/include/usb/usb.h
r3692678 rae3a941 54 54 #define uint32_usb2host(n) uint32_t_le2host((n)) 55 55 56 const char * usb_str_transfer_type(usb_transfer_type_tt);57 const char * usb_str_transfer_type_short(usb_transfer_type_tt);56 const char *usb_str_transfer_type(usb_transfer_type_t); 57 const char *usb_str_transfer_type_short(usb_transfer_type_t); 58 58 59 59 const char *usb_str_direction(usb_direction_t); … … 149 149 static inline bool usb_target_same(usb_target_t a, usb_target_t b) 150 150 { 151 return (a.address == b.address) 152 && (a.endpoint == b.endpoint); 151 return (a.address == b.address) && (a.endpoint == b.endpoint); 153 152 } 154 153 … … 167 166 USB_PID_SETUP = _MAKE_PID(3, 1), 168 167 169 USB_PID_DATA0 = _MAKE_PID(0 ,3),170 USB_PID_DATA1 = _MAKE_PID(2 ,3),168 USB_PID_DATA0 = _MAKE_PID(0, 3), 169 USB_PID_DATA1 = _MAKE_PID(2, 3), 171 170 172 USB_PID_ACK = _MAKE_PID(0 ,2),173 USB_PID_NAK = _MAKE_PID(2 ,2),174 USB_PID_STALL = _MAKE_PID(3 ,2),171 USB_PID_ACK = _MAKE_PID(0, 2), 172 USB_PID_NAK = _MAKE_PID(2, 2), 173 USB_PID_STALL = _MAKE_PID(3, 2), 175 174 176 USB_PID_PRE = _MAKE_PID(3 ,0),175 USB_PID_PRE = _MAKE_PID(3, 0), 177 176 /* USB_PID_ = _MAKE_PID( ,), */ 178 177 #undef _MAKE_PID
Note:
See TracChangeset
for help on using the changeset viewer.