summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-11-20 15:50:11 +0700
committerhathach <[email protected]>2020-11-20 15:50:11 +0700
commit61ad7bef7140d8e06343a5ce4e15d3a2fe7f158a (patch)
tree8079dee201d692225a3bc41ebc24c0762159fb23 /src
parent3cc1979adbfb8f91ce4a938573e729e8b80d4627 (diff)
migrate vendor device to new control xfer cb
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.c3
-rw-r--r--src/device/usbd.h4
2 files changed, 1 insertions, 6 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c
index b629a1ff8..9773245c8 100644
--- a/src/device/usbd.c
+++ b/src/device/usbd.c
@@ -158,8 +158,7 @@ static usbd_class_driver_t const _usbd_driver[] =
.init = vendord_init,
.reset = vendord_reset,
.open = vendord_open,
- .control_xfer_cb = tud_vendor_control_request_cb,
- .control_complete = tud_vendor_control_complete_cb,
+ .control_xfer_cb = tud_vendor_control_xfer_cb,
.xfer_cb = vendord_xfer_cb,
.sof = NULL
},
diff --git a/src/device/usbd.h b/src/device/usbd.h
index cf7e9f0db..ef248e4ca 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -127,10 +127,6 @@ TU_ATTR_WEAK void tud_resume_cb(void);
// Invoked when received control request with VENDOR TYPE
TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t const * request);
-// Invoked when vendor control request is complete
-TU_ATTR_WEAK bool tud_vendor_control_complete_cb(uint8_t rhport, tusb_control_request_t const * request);
-
-
//--------------------------------------------------------------------+
// Binary Device Object Store (BOS) Descriptor Templates
//--------------------------------------------------------------------+