test public

Dependencies:   HttpServer_snapshot_mbed-os

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers USBHostConf.h Source File

USBHostConf.h

00001 /* mbed USBHost Library
00002  * Copyright (c) 2006-2013 ARM Limited
00003  *
00004  * Licensed under the Apache License, Version 2.0 (the "License");
00005  * you may not use this file except in compliance with the License.
00006  * You may obtain a copy of the License at
00007  *
00008  *     http://www.apache.org/licenses/LICENSE-2.0
00009  *
00010  * Unless required by applicable law or agreed to in writing, software
00011  * distributed under the License is distributed on an "AS IS" BASIS,
00012  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00013  * See the License for the specific language governing permissions and
00014  * limitations under the License.
00015  */
00016 
00017 #ifndef USBHOST_CONF_H
00018 #define USBHOST_CONF_H
00019 
00020 #if defined(TARGET_RZ_A1XX) || defined(TARGET_RZ_A2M_EVB) || defined(TARGET_RZ_A2M_EVB_HF) || defined(TARGET_RZ_A2M_SBEV)
00021 
00022 /*
00023 * Maximum number of devices that can be connected
00024 * to the usb host
00025 */
00026 #define MAX_DEVICE_CONNECTED        5
00027 
00028 /*
00029 * Maximum of Hub connected to the usb host
00030 */
00031 #define MAX_HUB_NB                  2
00032 
00033 /*
00034 * Maximum number of ports on a USB hub
00035 */
00036 #define MAX_HUB_PORT                4
00037 
00038 /*
00039 * Enable USBHostMSD
00040 */
00041 #define USBHOST_MSD                 1
00042 
00043 /*
00044 * Enable USBHostKeyboard
00045 */
00046 #define USBHOST_KEYBOARD            1
00047 
00048 /*
00049 * Enable USBHostMouse
00050 */
00051 #define USBHOST_MOUSE               1
00052 
00053 /*
00054 * Enable USBHostSerial or USBHostMultiSerial (if set > 1)
00055 */
00056 #define USBHOST_SERIAL              1
00057 
00058 /*
00059 * Enable USB3Gmodule
00060 */
00061 #define USBHOST_3GMODULE            1
00062 
00063 /*
00064 * Enable USB MIDI
00065 */
00066 #define USBHOST_MIDI                1 
00067 
00068 /*
00069 * Maximum number of interfaces of a usb device
00070 */
00071 #define MAX_INTF                    4
00072 
00073 /*
00074 * Maximum number of endpoints on each interface
00075 */
00076 #define MAX_ENDPOINT_PER_INTERFACE  3
00077 
00078 /*
00079 * Maximum number of endpoint descriptors that can be allocated
00080 */
00081 #define MAX_ENDPOINT                (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE)
00082 
00083 #else
00084 
00085 #define MAX_DEVICE_CONNECTED        5
00086 #define MAX_HUB_NB                  2
00087 #define MAX_HUB_PORT                4
00088 #define USBHOST_MSD                 0
00089 #define USBHOST_KEYBOARD            0
00090 #define USBHOST_MOUSE               0
00091 #define USBHOST_SERIAL              0
00092 #define USBHOST_3GMODULE            0
00093 #define USBHOST_MIDI                0 
00094 #define MAX_INTF                    4
00095 #define MAX_ENDPOINT_PER_INTERFACE  3
00096 #define MAX_ENDPOINT                (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE)
00097 #endif
00098 /*
00099 * Maximum number of transfer descriptors that can be allocated
00100 */
00101 #define MAX_TD                      (MAX_ENDPOINT*2)
00102 
00103 /*
00104 * usb_thread stack size
00105 */
00106 #define USB_THREAD_STACK            (256*4 + 2*256*4)
00107 
00108 #endif