migrate cdc_device to new control_xfer_cb

This commit is contained in:
hathach
2020-11-19 21:26:06 +07:00
parent 3c31d08051
commit dd07fecc5f
5 changed files with 55 additions and 63 deletions

View File

@@ -97,8 +97,7 @@ static usbd_class_driver_t const _usbd_driver[] =
.init = cdcd_init,
.reset = cdcd_reset,
.open = cdcd_open,
.control_xfer_cb = cdcd_control_request,
.control_complete = cdcd_control_complete,
.control_xfer_cb = cdcd_control_xfer_cb,
.xfer_cb = cdcd_xfer_cb,
.sof = NULL
},