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

@@ -167,9 +167,7 @@
#endif
// TODO Device APP
#define USB_MAX_IF_NUM 8
#define USB_MAX_EP_NUM 5
#define USB_FS_MAX_BULK_PACKET 64
#define USB_HS_MAX_BULK_PACKET USB_FS_MAX_BULK_PACKET /* Full speed device only */
@@ -178,14 +176,13 @@
#define USB_MAX_PACKET0 64
/* HID In/Out Endpoint Address */
#define HID_KEYBOARD_EP_IN USB_ENDPOINT_IN(1)
//#define HID_KEYBOARD_EP_OUT USB_ENDPOINT_OUT(1)
#define HID_MOUSE_EP_IN USB_ENDPOINT_IN(4)
#define HID_KEYBOARD_EP_IN ENDPOINT_IN_LOGICAL_TO_PHYSICAL(1)
#define HID_MOUSE_EP_IN ENDPOINT_IN_LOGICAL_TO_PHYSICAL(4)
/* CDC Endpoint Address */
#define CDC_NOTIFICATION_EP USB_ENDPOINT_IN(2)
#define CDC_DATA_EP_OUT USB_ENDPOINT_OUT(3)
#define CDC_DATA_EP_IN USB_ENDPOINT_IN(3)
#define CDC_NOTIFICATION_EP ENDPOINT_IN_LOGICAL_TO_PHYSICAL(2)
#define CDC_DATA_EP_OUT ENDPOINT_OUT_LOGICAL_TO_PHYSICAL(3)
#define CDC_DATA_EP_IN ENDPOINT_IN_LOGICAL_TO_PHYSICAL(3)
#define CDC_NOTIFICATION_EP_MAXPACKETSIZE 8
#define CDC_DATA_EP_MAXPACKET_SIZE 16