change device driver init to open (when configured)

fix HID_REQUEST_CONTROL_SET_REPORT handle
This commit is contained in:
hathach
2013-10-29 16:29:48 +07:00
parent 5ab195a73d
commit cb0a02f8c9
7 changed files with 73 additions and 26 deletions

View File

@@ -151,7 +151,7 @@ app_descriptor_configuration_t app_tusb_desc_configuration =
.bLength = sizeof(tusb_descriptor_configuration_t),
.bDescriptorType = TUSB_DESC_TYPE_CONFIGURATION,
.wTotalLength = sizeof(app_descriptor_configuration_t) - 1, // exclude termination
.wTotalLength = sizeof(app_descriptor_configuration_t),
.bNumInterfaces = TOTAL_INTEFACES,
.bConfigurationValue = 1,

View File

@@ -97,7 +97,6 @@ typedef ATTR_PACKED_STRUCT(struct)
tusb_descriptor_endpoint_t msc_endpoint_out;
#endif
uint8_t null_termination; // NXP rom driver requires this to work
} app_descriptor_configuration_t;
//--------------------------------------------------------------------+