RP2040 support

This commit is contained in:
graham sanderson
2021-01-19 19:52:07 -06:00
parent 589dfdb0e5
commit e0aa405d19
16 changed files with 1813 additions and 4 deletions

View File

@@ -86,6 +86,7 @@ extern void hcd_int_handler(uint8_t rhport);
#define tuh_int_handler hcd_int_handler
tusb_device_state_t tuh_device_get_state (uint8_t dev_addr);
tusb_speed_t tuh_device_get_speed (uint8_t dev_addr);
static inline bool tuh_device_is_configured(uint8_t dev_addr)
{
return tuh_device_get_state(dev_addr) == TUSB_DEVICE_STATE_CONFIGURED;