add TUSB_CFG_PROUDCT_ID check

move USB_MAX_EP_NUM to device dependency
- lpc43 --> 6
- lpc11/13 --> 5
This commit is contained in:
hathach
2013-06-03 15:56:14 +07:00
parent 52f18f3784
commit 9f9adca03b
8 changed files with 91 additions and 81 deletions

View File

@@ -132,14 +132,14 @@ tusb_descriptor_device_t app_tusb_desc_device =
.bMaxPacketSize0 = USB_MAX_PACKET0,
.idVendor = TUSB_CFG_DEVICE_VENDORID,
.idProduct = USB_PRODUCT_ID,
.idProduct = TUSB_CFG_PRODUCT_ID,
.bcdDevice = 0x0100,
.iManufacturer = 0x01,
.iProduct = 0x02,
.iSerialNumber = 0x03,
.bNumConfigurations = 0x01 // TODO configuration number
.bNumConfigurations = 0x01 // TODO multiple configurations
};