summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHa Thach <[email protected]>2023-03-17 15:27:56 +0700
committerGitHub <[email protected]>2023-03-17 15:27:56 +0700
commit16daad81643279ffc951ba11a531877dfee8c872 (patch)
tree8b906cc9e51b0ad614b6982bd0edc9789218ca5f /src/common
parent96d064e923dbc1c86a247ada0395923667cca468 (diff)
parent511f5be8b34f0a28b20773f2d39bda575f07065f (diff)
Merge pull request #1960 from hathach/fix-host-enumerate-mul-device
Fix host enumerate multiple devices from multiple host controllers
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h6
-rw-r--r--src/common/tusb_types.h5
2 files changed, 6 insertions, 5 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index 957491aa9..faccf8726 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -75,6 +75,12 @@
#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 7266a525e..d567bd482 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -273,11 +273,6 @@ enum
CONTROL_STAGE_ACK
};
-enum
-{
- TUSB_INDEX_INVALID = 0xff
-};
-
//--------------------------------------------------------------------+
// USB Descriptors
//--------------------------------------------------------------------+