Commit | Line | Data |
---|---|---|
cd011f58 AW |
1 | /* USBEndpoints_LPC11U.h */\r |
2 | /* Endpoint configuration for LPC11U */\r | |
3 | /* Copyright (c) 2011 ARM Limited. All rights reserved. */\r | |
4 | \r | |
5 | #define NUMBER_OF_LOGICAL_ENDPOINTS (5)\r | |
6 | #define NUMBER_OF_PHYSICAL_ENDPOINTS (NUMBER_OF_LOGICAL_ENDPOINTS * 2)\r | |
7 | \r | |
8 | /* Define physical endpoint numbers */\r | |
9 | \r | |
10 | /* Endpoint No. Type(s) MaxPacket DoubleBuffer */\r | |
11 | /* ---------------- ------------ ---------- --- */\r | |
12 | #define EP0OUT (0) /* Control 64 No */\r | |
13 | #define EP0IN (1) /* Control 64 No */\r | |
14 | #define EP1OUT (2) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
15 | #define EP1IN (3) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
16 | #define EP2OUT (4) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
17 | #define EP2IN (5) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
18 | #define EP3OUT (6) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
19 | #define EP3IN (7) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
20 | #define EP4OUT (8) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
21 | #define EP4IN (9) /* Int/Bulk/Iso 64/64/1023 Yes */\r | |
22 | \r | |
23 | /* Maximum Packet sizes */\r | |
24 | \r | |
25 | #define MAX_PACKET_SIZE_EP0 (64)\r | |
26 | #define MAX_PACKET_SIZE_EP1 (64) /* Int/Bulk */\r | |
27 | #define MAX_PACKET_SIZE_EP2 (64) /* Int/Bulk */\r | |
28 | #define MAX_PACKET_SIZE_EP3 (64) /* Int/Bulk */\r | |
29 | #define MAX_PACKET_SIZE_EP4 (64) /* Int/Bulk */\r | |
30 | \r | |
31 | #define MAX_PACKET_SIZE_EP1_ISO (1023) /* Isochronous */\r | |
32 | #define MAX_PACKET_SIZE_EP2_ISO (1023) /* Isochronous */\r | |
33 | #define MAX_PACKET_SIZE_EP3_ISO (1023) /* Isochronous */\r | |
34 | #define MAX_PACKET_SIZE_EP4_ISO (1023) /* Isochronous */\r | |
35 | \r | |
36 | /* Generic endpoints - intended to be portable accross devices */\r | |
37 | /* and be suitable for simple USB devices. */\r | |
38 | \r | |
39 | /* Bulk endpoint */\r | |
40 | #define EPBULK_OUT (EP2OUT)\r | |
41 | #define EPBULK_IN (EP2IN)\r | |
42 | /* Interrupt endpoint */\r | |
43 | #define EPINT_OUT (EP1OUT)\r | |
44 | #define EPINT_IN (EP1IN)\r | |
45 | /* Isochronous endpoint */\r | |
46 | #define EPISO_OUT (EP3OUT)\r | |
47 | #define EPISO_IN (EP3IN)\r | |
48 | \r | |
49 | #define MAX_PACKET_SIZE_EPBULK (MAX_PACKET_SIZE_EP2)\r | |
50 | #define MAX_PACKET_SIZE_EPINT (MAX_PACKET_SIZE_EP1)\r | |
51 | #define MAX_PACKET_SIZE_EPISO (MAX_PACKET_SIZE_EP3_ISO)\r |