xhci控制器初始化(还存在bug,无法reset端口)

This commit is contained in:
fslongjin
2022-07-21 20:43:49 +08:00
parent c9c8147cdf
commit fa1c2bd461
5 changed files with 202 additions and 31 deletions

View File

@ -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驱动程序
*