extract code to invoke_class_control()

- also rename usbd_class_drivers to _usbd_driver
This commit is contained in:
hathach
2019-11-27 12:12:52 +07:00
parent 3a2d63613b
commit 8a1b6327ba
2 changed files with 40 additions and 39 deletions

View File

@@ -130,7 +130,9 @@ void usbd_control_set_complete_callback( bool (*fp) (uint8_t, tusb_control_reque
_ctrl_xfer.complete_cb = fp;
}
// callback when a transaction complete on DATA stage of control endpoint
// callback when a transaction complete on
// - DATA stage of control endpoint or
// - Status stage
bool usbd_control_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t result, uint32_t xferred_bytes)
{
(void) result;