diff options
| author | hathach <[email protected]> | 2013-06-03 14:31:17 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-06-03 14:31:17 +0700 |
| commit | b527e6ec4a9d0b6ecad5a6ce74b27458d1cd24be (patch) | |
| tree | 2d7c009e15d1fd73d9df62217c9e4a748ebe026f /tinyusb/core | |
| parent | 7d78fc1baf24c537ea7386f698e1e20ed80f16ba (diff) | |
refractor tusb_descriptors
usbd device_class_driver
added & tested HID mouse for device (work together with hid keyboard)
rename DEVICE_ROM_REG_BASE, DEVICE_ROM_DRIVER_ADDR
Diffstat (limited to 'tinyusb/core')
| -rw-r--r-- | tinyusb/core/std_descriptors.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tinyusb/core/std_descriptors.h b/tinyusb/core/std_descriptors.h index 4cef29746..854bbe06f 100644 --- a/tinyusb/core/std_descriptors.h +++ b/tinyusb/core/std_descriptors.h @@ -53,6 +53,8 @@ extern "C" { #endif +#define STRING_LEN_BYTE2UNICODE(n) (2 + ((n)<<1)) + //--------------------------------------------------------------------+ // STANDARD DESCRIPTORS //--------------------------------------------------------------------+ @@ -177,6 +179,12 @@ typedef ATTR_PREPACKED struct ATTR_PACKED uint8_t bDescriptorType ; ///< Descriptor Type } tusb_descriptor_header_t; +//typedef ATTR_PACKED_STRUCT(struct) +//{ +// uint8_t bLength ; ///< Size of this descriptor in bytes +// uint8_t bDescriptorType ; ///< Descriptor Type +// uint16_t unicode_string[]; +//} tusb_descriptor_string_t; #ifdef __cplusplus } |
