mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-21 12:06:37 +00:00
xhci控制器初始化(还存在bug,无法reset端口)
This commit is contained in:
@ -12,6 +12,12 @@
|
||||
#define USB_TYPE_UNSPEC 0x80 // Unspecified
|
||||
#define USB_TYPE_DEVICE 0xfe // USB Device(Not controller)
|
||||
|
||||
// Reset wait times(milliseconds) ,USB 2.0 specs, page 153, section 7.1.7.5, paragraph 3
|
||||
#define USB_TIME_RST_RH 50 // reset on a root hub
|
||||
#define USB_TIME_RST_MIN 10 // minimum delay for a reset
|
||||
#define USB_TIME_RST_NOMORE 3 // No more than this between resets for root hubs
|
||||
#define USB_TIME_RST_REC 10 // reset recovery
|
||||
|
||||
/**
|
||||
* @brief 初始化usb驱动程序
|
||||
*
|
||||
|
Reference in New Issue
Block a user