Add hooks to allow cloning an attached USB device descriptor

This commit is contained in:
rppicomidi
2022-08-25 15:08:00 -07:00
committed by atoktoto
parent 2ddd74fada
commit 70eefcb849
4 changed files with 14 additions and 7 deletions

View File

@@ -78,7 +78,11 @@ enum
// APPLICATION CALLBACK
//--------------------------------------------------------------------+
//TU_ATTR_WEAK uint8_t tuh_attach_cb (tusb_desc_device_t const *desc_device);
// Give the application an opportunity to grab the device descriptor
TU_ATTR_WEAK void tuh_desc_device_cb(uint8_t daddr, const tusb_desc_device_t *desc_device);
// Give the application an opportunity to grab the configuration descriptor
TU_ATTR_WEAK void tuh_desc_config_cb(uint8_t daddr, const tusb_desc_configuration_t *desc_config);
// Invoked when device is mounted (configured)
TU_ATTR_WEAK void tuh_mount_cb (uint8_t daddr);