forked from xuos/xiuos
New field usb_hc_type in data structure usbh_urb
This commit is contained in:
parent
3d5e8ed6fc
commit
cc22f1b8f8
|
@ -3,6 +3,16 @@
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
/*************************************************
|
||||||
|
File name: usb_hc.h
|
||||||
|
Description: adopt cherry USB to XiZi AIOT.
|
||||||
|
Others: take CherryUSB v0.1.2/common/usb_hc.h for references
|
||||||
|
https://gitee.com/phytium_embedded/phytium-free-rtos-sdk/blob/master/third-party/cherryusb/common/usb_hc.h
|
||||||
|
History:
|
||||||
|
1. Date: 2024-06-19
|
||||||
|
Author: AIIT XUOS Lab
|
||||||
|
Modification: New field usb_hc_type in data structure usbh_urb.
|
||||||
|
*************************************************/
|
||||||
|
|
||||||
#ifndef USB_HC_H_
|
#ifndef USB_HC_H_
|
||||||
#define USB_HC_H_
|
#define USB_HC_H_
|
||||||
|
@ -59,6 +69,7 @@ struct usbh_urb {
|
||||||
uint32_t actual_length;
|
uint32_t actual_length;
|
||||||
uint32_t timeout;
|
uint32_t timeout;
|
||||||
int errorcode;
|
int errorcode;
|
||||||
|
uint8_t usb_hc_type;
|
||||||
uint32_t num_of_iso_packets;
|
uint32_t num_of_iso_packets;
|
||||||
uint32_t start_frame;
|
uint32_t start_frame;
|
||||||
usbh_complete_callback_t complete;
|
usbh_complete_callback_t complete;
|
||||||
|
@ -142,7 +153,4 @@ int usbh_kill_urb(struct usbh_urb *urb);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* USB_HC_H_ */
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in New Issue