Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of USBDevice by
USBEndpoints_KL25Z.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 (3) 00020 #define NUMBER_OF_PHYSICAL_ENDPOINTS (NUMBER_OF_LOGICAL_ENDPOINTS * 2) 00021 00022 /* Define physical endpoint numbers */ 00023 00024 /* Endpoint No. */ 00025 /* ---------------- */ 00026 #define EP0OUT (0) 00027 #define EP0IN (1) 00028 #define EP1OUT (2) 00029 #define EP1IN (3) 00030 #define EP2OUT (4) 00031 #define EP2IN (5) 00032 00033 /* Maximum Packet sizes */ 00034 00035 #define MAX_PACKET_SIZE_EP0 (64) 00036 #define MAX_PACKET_SIZE_EP1 (64) 00037 #define MAX_PACKET_SIZE_EP2 (64) 00038 00039 /* Generic endpoints - intended to be portable accross devices */ 00040 /* and be suitable for simple USB devices. */ 00041 00042 /* Bulk endpoints */ 00043 #define EPBULK_OUT (EP2OUT) 00044 #define EPBULK_IN (EP2IN) 00045 /* Interrupt endpoints */ 00046 #define EPINT_OUT (EP1OUT) 00047 #define EPINT_IN (EP1IN) 00048 00049 #define MAX_PACKET_SIZE_EPBULK (MAX_PACKET_SIZE_EP2) 00050 #define MAX_PACKET_SIZE_EPINT (MAX_PACKET_SIZE_EP1)
Generated on Wed Jul 13 2022 03:18:29 by
1.7.2
