mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
remove int_on_complete for tusb_dcd_control_xfer
This commit is contained in:
parent
ff5957ec73
commit
9a487a238a
@ -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;
|
||||
|
||||
|
@ -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];
|
||||
|
@ -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 );
|
||||
|
@ -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);
|
||||
|
@ -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 -------------//
|
||||
|
Loading…
x
Reference in New Issue
Block a user