summaryrefslogtreecommitdiff
path: root/tinyusb/device/usbd.h
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 /tinyusb/device/usbd.h
parent5ab195a73d58bcf8d104a7b49d2674368c292792 (diff)
change device driver init to open (when configured)
fix HID_REQUEST_CONTROL_SET_REPORT handle
Diffstat (limited to 'tinyusb/device/usbd.h')
-rw-r--r--tinyusb/device/usbd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h
index 86e4da656..39bbceee0 100644
--- a/tinyusb/device/usbd.h
+++ b/tinyusb/device/usbd.h
@@ -65,7 +65,7 @@
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
typedef struct {
- tusb_error_t (* const init)(uint8_t, tusb_descriptor_interface_t const *, uint16_t*);
+ tusb_error_t (* const open)(uint8_t, tusb_descriptor_interface_t const *, uint16_t*);
tusb_error_t (* const control_request) (uint8_t, tusb_control_request_t const *);
// void (* const isr) (pipe_handle_t, tusb_event_t);
// void (* const close) (uint8_t);