Skip to content

Commit 2abd3c5

Browse files
committed
define hcd_devtree_info_t forr backward compatible
1 parent e7d4b5c commit 2abd3c5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/host/usbh.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ typedef struct {
8686
uint8_t speed;
8787
} tuh_bus_info_t;
8888

89+
// backward compatibility for hcd_devtree_info_t, maybe removed in the future
90+
#define hcd_devtree_info_t tuh_bus_info_t
91+
#define hcd_devtree_get_info(_daddr, _bus_info) tuh_bus_info_get(_daddr, _bus_info)
8992

9093
// ConfigID for tuh_configure()
9194
enum {

0 commit comments

Comments
 (0)