diff options
| author | hathach <[email protected]> | 2026-04-21 15:28:44 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-04-21 15:28:44 +0700 |
| commit | c13864dbe49b2009f9ad3be2f912ddd80a9ecd40 (patch) | |
| tree | 98bd831ada6ddb839488792488fa9729ddd35243 /src/common | |
| parent | 85b967c9b0d26c8dbd16fedfc07d166b8f9b77ae (diff) | |
optimize pipe_state_t sram for port with CFG_TUD_ENDPOINT_ONE_DIRECTION_ONLY.
separate process_edpt_n() to process_epin() and process_epout()
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_types.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index a18f9feb7..806997866 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -100,12 +100,14 @@ typedef enum { } tusb_xfer_type_t; typedef enum { - TUSB_DIR_OUT = 0, - TUSB_DIR_IN = 1, + TUSB_DIR_OUT = 0u, + TUSB_DIR_IN = 1u, +} tusb_dir_t; - TUSB_EPNUM_MASK = 0x0F, +enum { + TUSB_EPNUM_MASK = 0x0F, TUSB_DIR_IN_MASK = 0x80 -} tusb_dir_t; +}; enum { TUSB_EPSIZE_BULK_FS = 64, |
