rename hal_dcd_pipe_stall()
This commit is contained in:
@@ -91,7 +91,7 @@ bool hal_dcd_pipe_open(uint8_t coreid, tusb_descriptor_endpoint_t const * p_endp
|
||||
|
||||
tusb_error_t dcd_pipe_queue_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes); // only queue, not transferring yet
|
||||
tusb_error_t hal_dcd_pipe_xfer(endpoint_handle_t edpt_hdl, uint8_t * buffer, uint16_t total_bytes, bool int_on_complete);
|
||||
tusb_error_t dcd_pipe_stall(endpoint_handle_t edpt_hdl);
|
||||
void hal_dcd_pipe_stall(endpoint_handle_t edpt_hdl);
|
||||
|
||||
bool dcd_pipe_is_busy(endpoint_handle_t edpt_hdl);
|
||||
|
||||
|
||||
@@ -453,10 +453,9 @@ bool dcd_pipe_is_busy(endpoint_handle_t edpt_hdl)
|
||||
return (dcd_data.udca[edpt_hdl.index] != NULL && !dcd_data.udca[edpt_hdl.index]->is_retired);
|
||||
}
|
||||
|
||||
tusb_error_t dcd_pipe_stall(endpoint_handle_t edpt_hdl)
|
||||
void hal_dcd_pipe_stall(endpoint_handle_t edpt_hdl)
|
||||
{
|
||||
sie_write(SIE_CMDCODE_ENDPOINT_SET_STATUS+edpt_hdl.index, 1, SIE_SET_ENDPOINT_STALLED_MASK);
|
||||
return TUSB_ERROR_NONE;
|
||||
}
|
||||
|
||||
tusb_error_t dcd_pipe_clear_stall(uint8_t coreid, uint8_t edpt_addr)
|
||||
|
||||
@@ -428,11 +428,9 @@ static inline uint8_t edpt_phy2log(uint8_t physical_endpoint)
|
||||
//--------------------------------------------------------------------+
|
||||
// BULK/INTERRUPT/ISOCHRONOUS PIPE API
|
||||
//--------------------------------------------------------------------+
|
||||
tusb_error_t dcd_pipe_stall(endpoint_handle_t edpt_hdl)
|
||||
void hal_dcd_pipe_stall(endpoint_handle_t edpt_hdl)
|
||||
{
|
||||
dcd_data.qhd[edpt_hdl.index][0].stall = dcd_data.qhd[edpt_hdl.index][1].stall = 1;
|
||||
|
||||
return TUSB_ERROR_NONE;
|
||||
}
|
||||
|
||||
bool dcd_pipe_is_stalled(endpoint_handle_t edpt_hdl)
|
||||
|
||||
Reference in New Issue
Block a user