summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-11-13 12:02:02 +0700
committerhathach <[email protected]>2025-11-13 12:31:27 +0700
commit397a3af8afc4bc5460572da4a40629684dfa788c (patch)
tree576d3ca7128854d5181b2a1c38660ba1f973ecb7 /src/common
parentf11adb02ebc0c594a7114b08585b8af18c3ee6d6 (diff)
clear endpoint stream when open for cdc_host and midi_host
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_common.h2
-rw-r--r--src/common/tusb_private.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h
index 7aa42a2d7..f377d5272 100644
--- a/src/common/tusb_common.h
+++ b/src/common/tusb_common.h
@@ -354,7 +354,7 @@ TU_ATTR_ALWAYS_INLINE static inline uint8_t tu_desc_subtype(void const* desc) {
return ((uint8_t const*) desc)[DESC_OFFSET_SUBTYPE];
}
-TU_ATTR_ALWAYS_INLINE static inline uint8_t tu_desc_in_bounds(uint8_t const* p_desc, uint8_t const* desc_end) {
+TU_ATTR_ALWAYS_INLINE static inline bool tu_desc_in_bounds(const uint8_t *p_desc, const uint8_t *desc_end) {
if (p_desc >= desc_end) {
return false;
}
diff --git a/src/common/tusb_private.h b/src/common/tusb_private.h
index f82f87b6f..be1264a71 100644
--- a/src/common/tusb_private.h
+++ b/src/common/tusb_private.h
@@ -120,7 +120,6 @@ TU_ATTR_ALWAYS_INLINE static inline bool tu_edpt_stream_empty(tu_edpt_stream_t *
return tu_fifo_empty(&s->ff);
}
-
//--------------------------------------------------------------------+
// Stream Write
//--------------------------------------------------------------------+