diff options
| author | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-05-23 13:22:46 +0700 |
| commit | 8cb7818bcc048a69b9e2b0a4607c8f75bc35c359 (patch) | |
| tree | 6307b044a94f013c7ec74b1462318484b30c1a76 /tests/test/support | |
| parent | d7ae21203c1a7915c397157a9d231264ff0e66fc (diff) | |
- move CMSIS & driver lib for lpc13u to codebase bsp/lpc13xx
- change descriptor.c/h able to build device example
Diffstat (limited to 'tests/test/support')
| -rw-r--r-- | tests/test/support/descriptor_test.c | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/tests/test/support/descriptor_test.c b/tests/test/support/descriptor_test.c index 02d2ba527..59f07fce5 100644 --- a/tests/test/support/descriptor_test.c +++ b/tests/test/support/descriptor_test.c @@ -40,29 +40,6 @@ #include "descriptor_test.h" TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) -tusb_descriptor_device_t const desc_device = -{ - .bLength = sizeof(tusb_descriptor_device_t), - .bDescriptorType = TUSB_DESC_DEVICE, - .bcdUSB = 0x0200, - .bDeviceClass = 0x00, - .bDeviceSubClass = 0x00, - .bDeviceProtocol = 0x00, - - .bMaxPacketSize0 = 64, - - .idVendor = 0x1FC9, - .idProduct = 0x4000, - .bcdDevice = 0x0100, - - .iManufacturer = 0x01, - .iProduct = 0x02, - .iSerialNumber = 0x03, - - .bNumConfigurations = 0x02 -} ; - -TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) const uint8_t keyboard_report_descriptor[] = { HID_USAGE_PAGE ( HID_USAGE_PAGE_DESKTOP ), HID_USAGE ( HID_USAGE_DESKTOP_KEYBOARD ), @@ -140,6 +117,31 @@ const uint8_t mouse_report_descriptor[] = { HID_COLLECTION_END }; + +TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) +tusb_descriptor_device_t const desc_device = +{ + .bLength = sizeof(tusb_descriptor_device_t), + .bDescriptorType = TUSB_DESC_DEVICE, + .bcdUSB = 0x0200, + .bDeviceClass = 0x00, + .bDeviceSubClass = 0x00, + .bDeviceProtocol = 0x00, + + .bMaxPacketSize0 = 64, + + .idVendor = 0x1FC9, + .idProduct = 0x4000, + .bcdDevice = 0x0100, + + .iManufacturer = 0x01, + .iProduct = 0x02, + .iSerialNumber = 0x03, + + .bNumConfigurations = 0x02 +} ; + + TUSB_CFG_ATTR_USBRAM ATTR_ALIGNED(4) const app_configuration_desc_t desc_configuration = { |
