diff options
| author | hathach <[email protected]> | 2018-03-23 12:32:40 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-23 12:32:40 +0700 |
| commit | 5f26c57b286ecdc555856c1e3e486923a43f4d04 (patch) | |
| tree | 0cb8d52def0cab79f76d6a0911ac4e0f874edc18 /tests/support/descriptor_test.c | |
| parent | 2c18805aa9b3b46777e0fcfb8d97efba209f9115 (diff) | |
shorten descriptor type
Diffstat (limited to 'tests/support/descriptor_test.c')
| -rw-r--r-- | tests/support/descriptor_test.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/tests/support/descriptor_test.c b/tests/support/descriptor_test.c index e8daadb91..da13265c8 100644 --- a/tests/support/descriptor_test.c +++ b/tests/support/descriptor_test.c @@ -119,9 +119,9 @@ const uint8_t mouse_report_descriptor[] = { TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) -tusb_descriptor_device_t const desc_device = +tusb_desc_device_t const desc_device = { - .bLength = sizeof(tusb_descriptor_device_t), + .bLength = sizeof(tusb_desc_device_t), .bDescriptorType = TUSB_DESC_TYPE_DEVICE, .bcdUSB = 0x0200, .bDeviceClass = 0x00, @@ -147,7 +147,7 @@ const app_configuration_desc_t desc_configuration = { .configuration = { - .bLength = sizeof(tusb_descriptor_configuration_t), + .bLength = sizeof(tusb_desc_configuration_t), .bDescriptorType = TUSB_DESC_TYPE_CONFIGURATION, .wTotalLength = sizeof(app_configuration_desc_t) - 1, // exclude termination @@ -162,7 +162,7 @@ const app_configuration_desc_t desc_configuration = //------------- HID Keyboard -------------// .keyboard_interface = { - .bLength = sizeof(tusb_descriptor_interface_t), + .bLength = sizeof(tusb_desc_interface_t), .bDescriptorType = TUSB_DESC_TYPE_INTERFACE, .bInterfaceNumber = 1, .bAlternateSetting = 0x00, @@ -186,7 +186,7 @@ const app_configuration_desc_t desc_configuration = .keyboard_endpoint = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x81, .bmAttributes = { .xfer = TUSB_XFER_INTERRUPT }, @@ -197,7 +197,7 @@ const app_configuration_desc_t desc_configuration = //------------- HID Mouse -------------// .mouse_interface = { - .bLength = sizeof(tusb_descriptor_interface_t), + .bLength = sizeof(tusb_desc_interface_t), .bDescriptorType = TUSB_DESC_TYPE_INTERFACE, .bInterfaceNumber = 2, .bAlternateSetting = 0x00, @@ -221,7 +221,7 @@ const app_configuration_desc_t desc_configuration = .mouse_endpoint = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x82, .bmAttributes = { .xfer = TUSB_XFER_INTERRUPT }, @@ -232,7 +232,7 @@ const app_configuration_desc_t desc_configuration = //------------- Mass Storage -------------// .msc_interface = { - .bLength = sizeof(tusb_descriptor_interface_t), + .bLength = sizeof(tusb_desc_interface_t), .bDescriptorType = TUSB_DESC_TYPE_INTERFACE, .bInterfaceNumber = 3, .bAlternateSetting = 0x00, @@ -245,7 +245,7 @@ const app_configuration_desc_t desc_configuration = .msc_endpoint_in = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x83, .bmAttributes = { .xfer = TUSB_XFER_BULK }, @@ -255,7 +255,7 @@ const app_configuration_desc_t desc_configuration = .msc_endpoint_out = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x03, .bmAttributes = { .xfer = TUSB_XFER_BULK }, @@ -266,7 +266,7 @@ const app_configuration_desc_t desc_configuration = //------------- CDC Serial -------------// .cdc_comm_interface = { - .bLength = sizeof(tusb_descriptor_interface_t), + .bLength = sizeof(tusb_desc_interface_t), .bDescriptorType = TUSB_DESC_TYPE_INTERFACE, .bInterfaceNumber = 4, .bAlternateSetting = 0, @@ -307,7 +307,7 @@ const app_configuration_desc_t desc_configuration = .cdc_endpoint_notification = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x84, .bmAttributes = { .xfer = TUSB_XFER_INTERRUPT }, @@ -318,7 +318,7 @@ const app_configuration_desc_t desc_configuration = //------------- CDC Data Interface -------------// .cdc_data_interface = { - .bLength = sizeof(tusb_descriptor_interface_t), + .bLength = sizeof(tusb_desc_interface_t), .bDescriptorType = TUSB_DESC_TYPE_INTERFACE, .bInterfaceNumber = 5, .bAlternateSetting = 0x00, @@ -331,7 +331,7 @@ const app_configuration_desc_t desc_configuration = .cdc_endpoint_out = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 5, .bmAttributes = { .xfer = TUSB_XFER_BULK }, @@ -341,7 +341,7 @@ const app_configuration_desc_t desc_configuration = .cdc_endpoint_in = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x85, .bmAttributes = { .xfer = TUSB_XFER_BULK }, |
