USB device stack - Added support for the logo/windows key to USB keyboard.

Dependents:   randomSearch

Fork of USBDevice by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers USBEndpoints_RZ_A1H.h Source File

USBEndpoints_RZ_A1H.h

00001 /* Copyright (c) 2010-2011 mbed.org, MIT License
00002 *
00003 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software
00004 * and associated documentation files (the "Software"), to deal in the Software without
00005 * restriction, including without limitation the rights to use, copy, modify, merge, publish,
00006 * distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the
00007 * Software is furnished to do so, subject to the following conditions:
00008 *
00009 * The above copyright notice and this permission notice shall be included in all copies or
00010 * substantial portions of the Software.
00011 *
00012 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
00013 * BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
00014 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
00015 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
00016 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
00017 */
00018 
00019 #define NUMBER_OF_LOGICAL_ENDPOINTS (16)
00020 #define NUMBER_OF_PHYSICAL_ENDPOINTS (NUMBER_OF_LOGICAL_ENDPOINTS * 2)
00021 
00022 /* Define physical endpoint numbers */
00023 
00024 /*      Endpoint    No.     Type(s)   MaxSiz  DoubleBuf  pipe */
00025 /*      ----------------    --------- ------  ---------  ---- */
00026 #define EP0OUT      (0)  /* Control    256    No           0  */
00027 #define EP0IN       (1)  /* Control    256    No           0  */
00028 #define EP1OUT      (2)  /* Int         64    No           6  */
00029 #define EP1IN       (3)  /* Int         64    No           7  */
00030 #define EP2OUT      (4)  /* Bulk      2048    Yes          3  */
00031 #define EP2IN       (5)  /* Bulk      2048    Yes          4  */
00032 #define EP3OUT      (6)  /* Bulk/Iso  2048    Yes          1  */
00033 #define EP3IN       (7)  /* Bulk/Iso  2048    Yes          2  */
00034 /*following EP is not configured in sample program*/
00035 #define EP6IN       (8)  /* Bulk      2048    Yes          5  */
00036 #define EP8IN       (9)  /* Int        64     No           8  */
00037 #define EP9IN       (10) /* Bulk       512    Bulk         9  */
00038 #define EP10IN      (11) /* Int/Bulk  2048    Bulk        10  */
00039 #define EP11IN      (12) /* Bulk      2048    Yes         11  */
00040 #define EP12IN      (13) /* Bulk      2048    Yes         12  */
00041 #define EP13IN      (14) /* Bulk      2048    Yes         13  */
00042 #define EP14IN      (15) /* Bulk      2048    Yes         14  */
00043 #define EP15IN      (16) /* Bulk      2048    Yes         15  */
00044 
00045 /* Maximum Packet sizes */
00046 #define MAX_PACKET_SIZE_EP0   (64)      /*pipe0/pipe0: control      */
00047 #define MAX_PACKET_SIZE_EP1   (64)      /*pipe6/pipe7: interrupt    */
00048 #define MAX_PACKET_SIZE_EP2  (512)      /*pipe3/pipe4: bulk         */
00049 #define MAX_PACKET_SIZE_EP3  (512)      /*pipe1/pipe2: isochronous  */
00050 #define MAX_PACKET_SIZE_EP6   (64)      /*pipe5:    Note *1 */
00051 #define MAX_PACKET_SIZE_EP8   (64)      /*pipe7:    Note *1 */
00052 #define MAX_PACKET_SIZE_EP9  (512)      /*pipe8:    Note *1 */
00053 #define MAX_PACKET_SIZE_EP10 (512)      /*pipe9:    Note *1 */
00054 #define MAX_PACKET_SIZE_EP11 (512)      /*pipe10:   Note *1 */
00055 #define MAX_PACKET_SIZE_EP12 (512)      /*pipe11:   Note *1 */
00056 #define MAX_PACKET_SIZE_EP13 (512)      /*pipe12:   Note *1 */
00057 #define MAX_PACKET_SIZE_EP14 (512)      /*pipe13:   Note *1 */
00058 #define MAX_PACKET_SIZE_EP15 (512)      /*pipe14:   Note *1 */
00059 /* Note *1: This pipe is not configure in sample program */
00060 
00061 
00062 /* Generic endpoints - intended to be portable accross devices */
00063 /* and be suitable for simple USB devices. */
00064 
00065 /* Bulk endpoints */
00066 #define EPBULK_OUT  (EP2OUT)
00067 #define EPBULK_IN   (EP2IN)
00068 #define EPBULK_OUT_callback   EP2_OUT_callback
00069 #define EPBULK_IN_callback    EP2_IN_callback
00070 /* Interrupt endpoints */
00071 #define EPINT_OUT   (EP1OUT)
00072 #define EPINT_IN    (EP1IN)
00073 #define EPINT_OUT_callback    EP1_OUT_callback
00074 #define EPINT_IN_callback     EP1_IN_callback
00075 /* Isochronous endpoints */
00076 #define EPISO_OUT   (EP3OUT)
00077 #define EPISO_IN    (EP3IN)
00078 #define EPISO_OUT_callback    EP3_OUT_callback
00079 #define EPISO_IN_callback     EP3_IN_callback
00080 
00081 #define MAX_PACKET_SIZE_EPBULK  (MAX_PACKET_SIZE_EP2)
00082 #define MAX_PACKET_SIZE_EPINT   (MAX_PACKET_SIZE_EP1)
00083 #define MAX_PACKET_SIZE_EPISO   (MAX_PACKET_SIZE_EP3)
00084 
00085 /*EOF*/