define hcd_devtree_info_t forr backward compatible

This commit is contained in:
hathach 2025-04-29 20:49:47 +07:00
parent e7d4b5c9e7
commit 2abd3c54c4
No known key found for this signature in database
GPG Key ID: 26FAB84F615C3C52

View File

@ -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 {