diff options
| author | hathach <[email protected]> | 2013-05-25 17:19:18 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-25 17:19:18 +0700 |
| commit | ed217948b8a25a7c4b7929775079ea8b9086305b (patch) | |
| tree | f615c3755c7e2c681f8f2669bb3c1458911626c6 /tinyusb/host | |
| parent | ae02263d817a7b2f37c7e9c5026fd067b9d75fcc (diff) | |
rename descriptor type, hid descriptor type
Diffstat (limited to 'tinyusb/host')
| -rw-r--r-- | tinyusb/host/usbh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/host/usbh.c b/tinyusb/host/usbh.c index c5f6ddeb2..3dc28e2b3 100644 --- a/tinyusb/host/usbh.c +++ b/tinyusb/host/usbh.c @@ -303,7 +303,7 @@ tusb_error_t enumeration_body_subtask(void) { .bmRequestType = { .direction = TUSB_DIR_DEV_TO_HOST, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE }, .bRequest = TUSB_REQUEST_GET_DESCRIPTOR, - .wValue = (TUSB_DESC_DEVICE << 8), + .wValue = (TUSB_DESC_TYPE_DEVICE << 8), .wLength = 8 }, enum_data_buffer ), @@ -352,7 +352,7 @@ tusb_error_t enumeration_body_subtask(void) { .bmRequestType = { .direction = TUSB_DIR_DEV_TO_HOST, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE }, .bRequest = TUSB_REQUEST_GET_DESCRIPTOR, - .wValue = (TUSB_DESC_DEVICE << 8), + .wValue = (TUSB_DESC_TYPE_DEVICE << 8), .wLength = 18 }, enum_data_buffer ), @@ -376,7 +376,7 @@ tusb_error_t enumeration_body_subtask(void) { .bmRequestType = { .direction = TUSB_DIR_DEV_TO_HOST, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE }, .bRequest = TUSB_REQUEST_GET_DESCRIPTOR, - .wValue = (TUSB_DESC_CONFIGURATION << 8) | (configure_selected - 1), + .wValue = (TUSB_DESC_TYPE_CONFIGURATION << 8) | (configure_selected - 1), .wLength = 9 }, enum_data_buffer ), @@ -394,7 +394,7 @@ tusb_error_t enumeration_body_subtask(void) { .bmRequestType = { .direction = TUSB_DIR_DEV_TO_HOST, .type = TUSB_REQUEST_TYPE_STANDARD, .recipient = TUSB_REQUEST_RECIPIENT_DEVICE }, .bRequest = TUSB_REQUEST_GET_DESCRIPTOR, - .wValue = (TUSB_DESC_CONFIGURATION << 8) | (configure_selected - 1), + .wValue = (TUSB_DESC_TYPE_CONFIGURATION << 8) | (configure_selected - 1), .wLength = ((tusb_descriptor_configuration_t*) enum_data_buffer)->wTotalLength }, enum_data_buffer ), @@ -429,7 +429,7 @@ tusb_error_t enumeration_body_subtask(void) while( p_desc < enum_data_buffer + ((tusb_descriptor_configuration_t*)enum_data_buffer)->wTotalLength ) { // skip until we see interface descriptor - if ( TUSB_DESC_INTERFACE != p_desc[DESCRIPTOR_OFFSET_TYPE] ) + if ( TUSB_DESC_TYPE_INTERFACE != p_desc[DESCRIPTOR_OFFSET_TYPE] ) { p_desc += p_desc[DESCRIPTOR_OFFSET_LENGTH]; // skip the descriptor, increase by the descriptor's length }else |
