summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-03-21 13:58:44 +0700
committerGitHub <[email protected]>2023-03-21 13:58:44 +0700
commit096b6ec462efe612613498b44ec596e4bac763a7 (patch)
tree2f9863be549be4cc4e5791eab36d5faaa9dfb79f /src/common
parentcbcf5d8c0866e6c0090b98ad9b3d6d504e313135 (diff)
parentccf17e3cde4c3ca42731829107ca18217aab541e (diff)
Merge pull request #1964 from hathach/add-tuh-set-interface
add tuh_set_interface
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h6
-rw-r--r--src/common/tusb_types.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index faccf8726..957491aa9 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -75,12 +75,6 @@
#include "tusb_timeout.h" // TODO remove
-enum
-{
- TU_INDEX_INVALID_8 = 0xFFu
-};
-
-
//--------------------------------------------------------------------+
// Optional API implemented by application if needed
// TODO move to a more ovious place/file
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index d567bd482..39a2d4564 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -273,6 +273,11 @@ enum
CONTROL_STAGE_ACK
};
+enum
+{
+ TUSB_INDEX_INVALID_8 = 0xFFu
+};
+
//--------------------------------------------------------------------+
// USB Descriptors
//--------------------------------------------------------------------+