summaryrefslogtreecommitdiff
path: root/tinyusb/device/usbd.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2014-03-23 14:14:00 +0700
committerhathach <[email protected]>2014-03-23 14:14:00 +0700
commit1af381c2de10b0e7a8955ebc3d40fb5fb58e4f1a (patch)
tree8933de8cafae474edcc8230787213785ada925cb /tinyusb/device/usbd.h
parente28170db2f43db51e0baff1e79c87490064c1258 (diff)
remove TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT
refractor descriptor to array of pointer, adding interface descriptor as well
Diffstat (limited to 'tinyusb/device/usbd.h')
-rw-r--r--tinyusb/device/usbd.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/tinyusb/device/usbd.h b/tinyusb/device/usbd.h
index c8665d033..d0eeb6e49 100644
--- a/tinyusb/device/usbd.h
+++ b/tinyusb/device/usbd.h
@@ -66,12 +66,12 @@
/// \brief Descriptor pointer collector to all the needed. All the addresses pointed
/// must be accessible by USB controller (see \ref TUSB_CFG_ATTR_USBRAM)
typedef struct {
- uint8_t * p_device; ///< pointer to device descritpor \ref tusb_descriptor_device_t
- uint8_t * p_configuration; ///< pointer to the whole configuration descriptor, starting by \ref tusb_descriptor_configuration_t
- uint8_t * p_string_arr[TUSB_CFG_DEVICE_STRING_DESCRIPTOR_COUNT]; ///< a array of pointers to string descriptors
+ uint8_t const * p_device; ///< pointer to device descritpor \ref tusb_descriptor_device_t
+ uint8_t const * p_configuration; ///< pointer to the whole configuration descriptor, starting by \ref tusb_descriptor_configuration_t
+ uint8_t const** p_string_arr; ///< a array of pointers to string descriptors
- uint8_t * p_hid_keyboard_report; ///< pointer to HID report descriptor of Keybaord interface. Only needed if TUSB_CFG_DEVICE_HID_KEYBOARD is enabled
- uint8_t * p_hid_mouse_report; ///< pointer to HID report descriptor of Mouse interface. Only needed if TUSB_CFG_DEVICE_HID_MOUSE is enabled
+ uint8_t const * p_hid_keyboard_report; ///< pointer to HID report descriptor of Keybaord interface. Only needed if TUSB_CFG_DEVICE_HID_KEYBOARD is enabled
+ uint8_t const * p_hid_mouse_report; ///< pointer to HID report descriptor of Mouse interface. Only needed if TUSB_CFG_DEVICE_HID_MOUSE is enabled
}tusbd_descriptor_pointer_t;
// define by application