summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorWini-Buh <[email protected]>2021-06-11 22:25:36 +0200
committerWini-Buh <[email protected]>2021-06-11 22:25:36 +0200
commit1c23462b43f47685cf0051568f4bfea5de37d563 (patch)
tree2138b38e4aec229b17c56b5ebfc8bbd393bb6cc6 /src/device/dcd.h
parent5a554508caba50bda2a82095a66a1896b960daaf (diff)
weak atrribute work around removed from CCRX_Port
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index d68f9baa7..25cfafc4b 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -117,7 +117,6 @@ void dcd_disconnect(uint8_t rhport) TU_ATTR_WEAK;
// Endpoint API
//--------------------------------------------------------------------+
-#if !defined(TU_HAS_NO_ATTR_WEAK)
// Invoked when a control transfer's status stage is complete.
// May help DCD to prepare for next control transfer, this API is optional.
void dcd_edpt0_status_complete(uint8_t rhport, tusb_control_request_t const * request) TU_ATTR_WEAK;
@@ -130,35 +129,6 @@ void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr) TU_ATTR_WEAK;
// This API is optional, may be useful for register-based for transferring data.
bool dcd_edpt_xfer_fifo (uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_t total_bytes) TU_ATTR_WEAK;
-#else
- #if ADD_WEAK_FUNC_DCD_EDPT0_STATUS_COMPLETE
- #define DCD_EDPT0_STATUS_COMPLETE dcd_edpt0_status_complete
- #endif
- #ifndef DCD_EDPT0_STATUS_COMPLETE
- #define DCD_EDPT0_STATUS_COMPLETE NULL
- #else
- extern void DCD_EDPT0_STATUS_COMPLETE(uint8_t rhport, tusb_control_request_t const * request);
- #endif
-
- #if ADD_WEAK_FUNC_DCD_EDPT_CLOSE
- #define DCD_EDPT_CLOSE dcd_edpt_close
- #endif
- #ifndef DCD_EDPT_CLOSE
- #define DCD_EDPT_CLOSE NULL
- #else
- extern void DCD_EDPT_CLOSE(uint8_t rhport, uint8_t ep_addr);
- #endif
-
- #if ADD_WEAK_FUNC_DCD_EDPT_XFER_FIFO
- #define DCD_EDPT_XFER_FIFO dcd_edpt_xfer_fifo
- #endif
- #ifndef DCD_EDPT_XFER_FIFO
- #define DCD_EDPT_XFER_FIFO NULL
- #else
- extern void DCD_EDPT_XFER_FIFO(uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_t total_bytes);
- #endif
-#endif
-
// Configure endpoint's registers according to descriptor
bool dcd_edpt_open (uint8_t rhport, tusb_desc_endpoint_t const * p_endpoint_desc);