add tuh_descriptor_get() and tuh_descriptor_device_get()

This commit is contained in:
hathach
2022-03-04 19:26:54 +07:00
parent 3a7d1cfead
commit e08a875d52
4 changed files with 58 additions and 47 deletions

View File

@@ -407,6 +407,7 @@ bool tud_init (uint8_t rhport)
if ( tud_inited() ) return true;
TU_LOG2("USBD init\r\n");
TU_LOG2_INT(sizeof(usbd_device_t));
tu_varclr(&_usbd_dev);