implement hcd_edpt_abort_xfer() for EHCI, also move thing around a bit

This commit is contained in:
hathach
2023-07-21 19:06:36 +07:00
parent 14c98dd863
commit c122e9df73
6 changed files with 147 additions and 86 deletions

View File

@@ -53,6 +53,8 @@
#define U32_TO_U8S_LE(_u32) TU_U32_BYTE0(_u32), TU_U32_BYTE1(_u32), TU_U32_BYTE2(_u32), TU_U32_BYTE3(_u32)
#define TU_BIT(n) (1UL << (n))
// Generate a mask with bit from high (31) to low (0) set, e.g TU_GENMASK(3, 0) = 0b1111
#define TU_GENMASK(h, l) ( (UINT32_MAX << (l)) & (UINT32_MAX >> (31 - (h))) )
//--------------------------------------------------------------------+