summaryrefslogtreecommitdiff
path: root/src/device/dcd.h
diff options
context:
space:
mode:
authorScott Shawcroft <[email protected]>2018-11-07 23:04:34 -0800
committerScott Shawcroft <[email protected]>2018-11-07 23:04:34 -0800
commit7a40ec2647f06c37c6b8f0b8af2c17ba747f0aeb (patch)
tree0224c95aa13c6203e690c9cb936b544785b97ac6 /src/device/dcd.h
parentc582c0fda972eb90d5d617436e75182ea0235542 (diff)
Split out the control endpoint logic
Diffstat (limited to 'src/device/dcd.h')
-rw-r--r--src/device/dcd.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/device/dcd.h b/src/device/dcd.h
index c1715a5b7..0c976edec 100644
--- a/src/device/dcd.h
+++ b/src/device/dcd.h
@@ -135,22 +135,6 @@ void dcd_edpt_stall (uint8_t rhport, uint8_t ep_addr);
void dcd_edpt_clear_stall (uint8_t rhport, uint8_t ep_addr);
bool dcd_edpt_stalled (uint8_t rhport, uint8_t ep_addr);
-//------------- Control Endpoint -------------//
-bool dcd_control_xfer (uint8_t rhport, uint8_t dir, uint8_t * buffer, uint16_t length);
-
-// Helper to send STATUS (zero length) packet
-// Note dir is value of direction bit in setup packet (i.e DATA stage direction)
-static inline bool dcd_control_status(uint8_t rhport, uint8_t dir)
-{
- // status direction is reversed to one in the setup packet
- return dcd_control_xfer(rhport, 1-dir, NULL, 0);
-}
-
-static inline void dcd_control_stall(uint8_t rhport)
-{
- dcd_edpt_stall(rhport, 0 | TUSB_DIR_IN_MASK);
-}
-
#ifdef __cplusplus
}
#endif