USB Mouse (relative) example for mbed NXP LPC11U24 beta

Committer:
chris
Date:
Wed Nov 09 15:55:10 2011 +0000
Revision:
1:e089be2a6aa1
Parent:
0:163560051396
removed include for <math.h> that is already included by mbed.h

Who changed what in which revision?

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