summaryrefslogtreecommitdiff
path: root/tusb_helpers.h.gen
diff options
context:
space:
mode:
authorLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 10:38:00 -0600
committerLuke T. Shumaker <lukeshu@lukeshu.com>2024-09-17 10:38:00 -0600
commit82634b3b8eabcc966c5480c4a58b81dbcb49d022 (patch)
treed2656fb79cbed6771534fb103467e1e8494a2779 /tusb_helpers.h.gen
parent86c29ffaa35592f16f6b1624002dcd97daf73511 (diff)
fix
Diffstat (limited to 'tusb_helpers.h.gen')
-rwxr-xr-xtusb_helpers.h.gen9
1 files changed, 1 insertions, 8 deletions
diff --git a/tusb_helpers.h.gen b/tusb_helpers.h.gen
index 8ef83c8..71173df 100755
--- a/tusb_helpers.h.gen
+++ b/tusb_helpers.h.gen
@@ -75,14 +75,7 @@ cat <<'EOT'
#define TUD_ENDPOINT_OUT 0x00
#define TUD_ENDPOINT_IN 0x80
-#define UTF16(str) u ## str
-
-static inline size_t utf16_strncpy(uint16_t *dst, uint16_t *src, size_t dsize) {
- size_t i;
- for (i = 0; i < dsize && src && src[i]; i++)
- dst[i] = src[i];
- return i;
-}
+#define TU_UTF16(str) u ## str
#endif /* _USB_HELPERS_H_ */
EOT