diff options
| author | hathach <[email protected]> | 2026-04-29 15:01:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2026-04-29 15:01:16 +0700 |
| commit | f53a9ec9afee11dbbb57c4561ef3eeeb37e572a6 (patch) | |
| tree | ec061e7c6e53bb113fe25db58c3fa56d72b7d4e1 /src/common/tusb_types.h | |
| parent | d11543a72260c340836aff505104e27cfdc92ccb (diff) | |
| parent | 096977889641be99815e31a12ab352650520e971 (diff) | |
Merge branch 'master' into hil_hfp
Diffstat (limited to 'src/common/tusb_types.h')
| -rw-r--r-- | src/common/tusb_types.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h index 8ae1407f8..959fc129a 100644 --- a/src/common/tusb_types.h +++ b/src/common/tusb_types.h @@ -102,10 +102,12 @@ typedef enum { typedef enum { 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, @@ -319,6 +321,12 @@ enum { TUSB_INDEX_INVALID_8 = 0xFF }; +enum { + TU_EP0_OUT = 0x00, + TU_EP0_IN = 0x80 +}; + + //--------------------------------------------------------------------+ // //--------------------------------------------------------------------+ |
