remove int_on_complete for tusb_dcd_control_xfer

This commit is contained in:
hathach 2018-03-21 15:36:44 +07:00
parent ff5957ec73
commit 9a487a238a
5 changed files with 5 additions and 5 deletions

View File

@ -330,7 +330,7 @@ static void control_xact_start(void)
//}
bool tusb_dcd_control_xfer (uint8_t port, tusb_dir_t dir, uint8_t * buffer, uint16_t length, bool int_on_complete)
bool tusb_dcd_control_xfer (uint8_t port, tusb_dir_t dir, uint8_t * buffer, uint16_t length)
{
(void) port;

View File

@ -237,7 +237,7 @@ void tusb_dcd_control_stall(uint8_t port)
// control transfer does not need to use qtd find function
// follows UM 24.10.8.1.1 Setup packet handling using setup lockout mechanism
bool tusb_dcd_control_xfer(uint8_t port, tusb_dir_t dir, uint8_t * p_buffer, uint16_t length, bool int_on_complete)
bool tusb_dcd_control_xfer(uint8_t port, tusb_dir_t dir, uint8_t * p_buffer, uint16_t length)
{
LPC_USB0_Type* const lpc_usb = LPC_USB[port];
dcd_data_t* const p_dcd = dcd_data_ptr[port];

View File

@ -295,7 +295,7 @@ tusb_error_t usbd_control_xfer_substak(uint8_t port, tusb_dir_t dir, uint8_t * b
// Data
if ( length )
{
tusb_dcd_control_xfer(port, dir, buffer, length, true);
tusb_dcd_control_xfer(port, dir, buffer, length);
osal_semaphore_wait( usbd_control_xfer_sem_hdl, 100, &error );
SUBTASK_ASSERT_STATUS( error );

View File

@ -134,7 +134,7 @@ tusb_error_t usbd_control_xfer_substak(uint8_t port, tusb_dir_t dir, uint8_t * b
static inline bool usbd_control_status(uint8_t port, tusb_dir_t dir)
{
return tusb_dcd_control_xfer(port, dir, NULL, 0, false);
return tusb_dcd_control_xfer(port, dir, NULL, 0);
}
tusb_error_t usbd_init(void);

View File

@ -80,7 +80,7 @@ void tusb_dcd_xfer_complete (uint8_t port, uint8_t edpt_addr, uint32_t xferre
*------------------------------------------------------------------*/
//------------- Control Endpoint -------------//
bool tusb_dcd_control_xfer (uint8_t port, tusb_dir_t dir, uint8_t * buffer, uint16_t length, bool int_on_complete);
bool tusb_dcd_control_xfer (uint8_t port, tusb_dir_t dir, uint8_t * buffer, uint16_t length);
void tusb_dcd_control_stall (uint8_t port);
//------------- Other Endpoints -------------//