summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-08-01 16:28:53 +0700
committerGitHub <[email protected]>2019-08-01 16:28:53 +0700
commit3f4adda5559442cd0cc73cae3b789af6c33b9583 (patch)
tree943c809c6fbb5447e4f799b7d73feeb9da2eab1e /src/common
parent2c2db31b095724fc8fc914f3c07641765ee0dc90 (diff)
parentf133fbbe1f3635ed77135330f48d6f1ba850b341 (diff)
Merge pull request #90 from hathach/develop
update from Develop
Diffstat (limited to 'src/common')
-rw-r--r--src/common/tusb_types.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/common/tusb_types.h b/src/common/tusb_types.h
index e7c0c93e6..9aea2d772 100644
--- a/src/common/tusb_types.h
+++ b/src/common/tusb_types.h
@@ -469,15 +469,6 @@ static inline uint8_t tu_desc_len(void const* desc)
return ((uint8_t const*) desc)[DESC_OFFSET_LEN];
}
-// Length of the string descriptors in bytes with slen characters
-#define TUD_DESC_STRLEN(_chr_count) (2*(_chr_count) + 2)
-
-// Header of string descriptors with len + string type
-#define TUD_DESC_STR_HEADER(_chr_count) ( (uint16_t) ( (TUSB_DESC_STRING << 8 ) | TUD_DESC_STRLEN(_chr_count)) )
-
-// Convert comma-separated string to descriptor unicode format
-#define TUD_DESC_STRCONV( ... ) (const uint16_t[]) { TUD_DESC_STR_HEADER(TU_ARGS_NUM(__VA_ARGS__)), __VA_ARGS__ }
-
#ifdef __cplusplus
}
#endif