summaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2025-04-29 20:49:47 +0700
committerhathach <[email protected]>2025-04-29 20:49:47 +0700
commit2abd3c54c4141e5e6e0bd4fea38849cb150fb161 (patch)
tree5c02a7b5f5288178f70880dc2944d90e1c194a3e /src/host
parente7d4b5c9e718b1e72df8aadb884d2f36ab9d158c (diff)
define hcd_devtree_info_t forr backward compatible
Diffstat (limited to 'src/host')
-rw-r--r--src/host/usbh.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/host/usbh.h b/src/host/usbh.h
index 6f09f0c80..6f34d8bb3 100644
--- a/src/host/usbh.h
+++ b/src/host/usbh.h
@@ -86,6 +86,9 @@ typedef struct {
uint8_t speed;
} tuh_bus_info_t;
+// backward compatibility for hcd_devtree_info_t, maybe removed in the future
+#define hcd_devtree_info_t tuh_bus_info_t
+#define hcd_devtree_get_info(_daddr, _bus_info) tuh_bus_info_get(_daddr, _bus_info)
// ConfigID for tuh_configure()
enum {