diff options
| author | Wini-Buh <[email protected]> | 2021-06-11 22:25:36 +0200 |
|---|---|---|
| committer | Wini-Buh <[email protected]> | 2021-06-11 22:25:36 +0200 |
| commit | 1c23462b43f47685cf0051568f4bfea5de37d563 (patch) | |
| tree | 2138b38e4aec229b17c56b5ebfc8bbd393bb6cc6 /src/device/usbd_control.c | |
| parent | 5a554508caba50bda2a82095a66a1896b960daaf (diff) | |
weak atrribute work around removed from CCRX_Port
Diffstat (limited to 'src/device/usbd_control.c')
| -rw-r--r-- | src/device/usbd_control.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/device/usbd_control.c b/src/device/usbd_control.c index 76f999f86..b3bab2e32 100644 --- a/src/device/usbd_control.c +++ b/src/device/usbd_control.c @@ -36,10 +36,6 @@ extern void usbd_driver_print_control_complete_name(usbd_control_xfer_cb_t callback); #endif -#if defined(TU_HAS_NO_ATTR_WEAK) -static void (*const MAKE_WEAK_FUNC(dcd_edpt0_status_complete))(uint8_t, tusb_control_request_t const *) = DCD_EDPT0_STATUS_COMPLETE; -#endif - enum { EDPT_CTRL_OUT = 0x00, @@ -184,7 +180,7 @@ bool usbd_control_xfer_cb (uint8_t rhport, uint8_t ep_addr, xfer_result_t result TU_ASSERT(0 == xferred_bytes); // invoke optional dcd hook if available - if (MAKE_WEAK_FUNC(dcd_edpt0_status_complete)) MAKE_WEAK_FUNC(dcd_edpt0_status_complete)(rhport, &_ctrl_xfer.request); + if (dcd_edpt0_status_complete) dcd_edpt0_status_complete(rhport, &_ctrl_xfer.request); if (_ctrl_xfer.complete_cb) { |
