Chris Styles / m0-USBKeyboard
Committer:
chris
Date:
Thu Oct 20 14:07:30 2011 +0000
Revision:
0:e98d1c2b16c6

        

Who changed what in which revision?

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