mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
EHCI HUB: Fix some issues related to speed and device addresses
This commit is contained in:
@@ -51,13 +51,12 @@
|
||||
********************************************************************************************/
|
||||
/* General definitions **********************************************************************/
|
||||
/* Endpoint speed values as used in endpoint characteristics field. NOTE: These values
|
||||
* are assumed to equal to the SPEED definitions in usb.h (minus 1).
|
||||
* are *NOT* the same as the SPEED definitions in usb.h.
|
||||
*/
|
||||
|
||||
#define EHCI_FULL_SPEED (0) /* Full-Speed (12Mbs) */
|
||||
#define EHCI_LOW_SPEED (1) /* Low-Speed (1.5Mbs) */
|
||||
#define EHCI_HIGH_SPEED (2) /* High-Speed (480 Mb/s) */
|
||||
#define EHCI_SPEED(s) ((s)-1)
|
||||
|
||||
#define EHCI_DIR_IN (1) /* Direction IN: Peripheral to host */
|
||||
#define EHCI_DIR_OUT (0) /* Direction OUT: Host to peripheral */
|
||||
|
||||
Reference in New Issue
Block a user