no big deal, only rename tusb_std_request_t to tusb_control_request_t
This commit is contained in:
@@ -99,7 +99,7 @@ void test_addr0_control_close(void)
|
||||
TEST_ASSERT_STATUS( hcd_pipe_control_open(dev_addr, control_max_packet_size) );
|
||||
|
||||
TEST_ASSERT_STATUS( hcd_pipe_control_xfer(dev_addr,
|
||||
&(tusb_std_request_t) {
|
||||
&(tusb_control_request_t) {
|
||||
.bmRequestType = { .direction = TUSB_DIR_HOST_TO_DEV, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE },
|
||||
.bRequest = TUSB_REQUEST_SET_ADDRESS,
|
||||
.wValue = 3 },
|
||||
@@ -124,7 +124,7 @@ void test_isr_disconnect_then_async_advance_control_pipe(void)
|
||||
TEST_ASSERT_STATUS( hcd_pipe_control_open(dev_addr, control_max_packet_size) );
|
||||
|
||||
TEST_ASSERT_STATUS( hcd_pipe_control_xfer(dev_addr,
|
||||
&(tusb_std_request_t) {
|
||||
&(tusb_control_request_t) {
|
||||
.bmRequestType = { .direction = TUSB_DIR_HOST_TO_DEV, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE },
|
||||
.bRequest = TUSB_REQUEST_SET_ADDRESS,
|
||||
.wValue = 3 },
|
||||
|
||||
@@ -103,7 +103,7 @@ void tearDown(void)
|
||||
//--------------------------------------------------------------------+
|
||||
// CONTROL TRANSFER
|
||||
//--------------------------------------------------------------------+
|
||||
tusb_std_request_t request_get_dev_desc =
|
||||
tusb_control_request_t request_get_dev_desc =
|
||||
{
|
||||
.bmRequestType = { .direction = TUSB_DIR_DEV_TO_HOST, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE },
|
||||
.bRequest = TUSB_REQUEST_GET_DESCRIPTOR,
|
||||
@@ -111,7 +111,7 @@ tusb_std_request_t request_get_dev_desc =
|
||||
.wLength = 18
|
||||
};
|
||||
|
||||
tusb_std_request_t request_set_dev_addr =
|
||||
tusb_control_request_t request_set_dev_addr =
|
||||
{
|
||||
.bmRequestType = { .direction = TUSB_DIR_HOST_TO_DEV, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE },
|
||||
.bRequest = TUSB_REQUEST_SET_ADDRESS,
|
||||
|
||||
Reference in New Issue
Block a user