Skip to content

Commit 018fcf8

Browse files
fix: Provide backward compatibility macros for tusb_deinit
1 parent debf359 commit 018fcf8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tusb.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,12 @@
137137
//--------------------------------------------------------------------+
138138
// User API
139139
//--------------------------------------------------------------------+
140+
141+
// Following macros are defined to be backward compatible
142+
// tinyusb 0.17.x and 0.18.x
143+
#define tusb_rhport_teardown(rhport) tusb_deinit(rhport)
144+
#define tusb_teardown(rhport) tusb_deinit(rhport)
145+
140146
#if CFG_TUH_ENABLED || CFG_TUD_ENABLED
141147

142148
// Internal helper for backward compatible with tusb_init(void)

0 commit comments

Comments
 (0)