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/lpc175x_6x/test | |
| parent | 2c18805aa9b3b46777e0fcfb8d97efba209f9115 (diff) | |
shorten descriptor type
Diffstat (limited to 'tests/lpc175x_6x/test')
| -rw-r--r-- | tests/lpc175x_6x/test/test_dcd_lpc175x_6x.c | 4 | ||||
| -rw-r--r-- | tests/lpc175x_6x/test/test_usbd.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tests/lpc175x_6x/test/test_dcd_lpc175x_6x.c b/tests/lpc175x_6x/test/test_dcd_lpc175x_6x.c index dfae099e0..ef084fc77 100644 --- a/tests/lpc175x_6x/test/test_dcd_lpc175x_6x.c +++ b/tests/lpc175x_6x/test/test_dcd_lpc175x_6x.c @@ -118,9 +118,9 @@ void test_dcd_init(void) void test_dcd_configure_endpoint_in(void) { - tusb_descriptor_endpoint_t const desc_endpoint = + tusb_desc_endpoint_t const desc_endpoint = { - .bLength = sizeof(tusb_descriptor_endpoint_t), + .bLength = sizeof(tusb_desc_endpoint_t), .bDescriptorType = TUSB_DESC_TYPE_ENDPOINT, .bEndpointAddress = 0x83, .bmAttributes = { .xfer = TUSB_XFER_INTERRUPT }, diff --git a/tests/lpc175x_6x/test/test_usbd.c b/tests/lpc175x_6x/test/test_usbd.c index 6a86f6303..69ba8c151 100644 --- a/tests/lpc175x_6x/test/test_usbd.c +++ b/tests/lpc175x_6x/test/test_usbd.c @@ -65,7 +65,7 @@ void test_dcd_init_failed(void) TEST_ASSERT_EQUAL(TUSB_ERROR_FAILED, usbd_init() ); } -tusb_error_t stub_hidd_init(uint8_t coreid, tusb_descriptor_interface_t const* p_interface_desc, uint16_t* p_length, int num_call) +tusb_error_t stub_hidd_init(uint8_t coreid, tusb_desc_interface_t const* p_interface_desc, uint16_t* p_length, int num_call) { switch(num_call) { |
