summaryrefslogtreecommitdiff
path: root/demos
diff options
context:
space:
mode:
authorhathach <[email protected]>2013-10-29 16:29:48 +0700
committerhathach <[email protected]>2013-10-29 16:29:48 +0700
commitcb0a02f8c9734af86ea86b0571bf1c6026d15dff (patch)
tree3283c4b76a9203318367628bed7bc7641bdf65ac /demos
parent5ab195a73d58bcf8d104a7b49d2674368c292792 (diff)
change device driver init to open (when configured)
fix HID_REQUEST_CONTROL_SET_REPORT handle
Diffstat (limited to 'demos')
-rw-r--r--demos/device/keyboard/tusb_descriptors.c2
-rw-r--r--demos/device/keyboard/tusb_descriptors.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/demos/device/keyboard/tusb_descriptors.c b/demos/device/keyboard/tusb_descriptors.c
index f1a42aa9d..14ff41a0d 100644
--- a/demos/device/keyboard/tusb_descriptors.c
+++ b/demos/device/keyboard/tusb_descriptors.c
@@ -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,
diff --git a/demos/device/keyboard/tusb_descriptors.h b/demos/device/keyboard/tusb_descriptors.h
index 81c629fd7..311eb543d 100644
--- a/demos/device/keyboard/tusb_descriptors.h
+++ b/demos/device/keyboard/tusb_descriptors.h
@@ -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;
//--------------------------------------------------------------------+