]>
git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/USBHost/USBHost/USBHostConf.h
1 /* mbed USBHost Library
2 * Copyright (c) 2006-2013 ARM Limited
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef USBHOST_CONF_H
18 #define USBHOST_CONF_H
21 * Maximum number of devices that can be connected
24 #define MAX_DEVICE_CONNECTED 5
27 * Maximum of Hub connected to the usb host
32 * Maximum number of ports on a USB hub
34 #define MAX_HUB_PORT 4
42 * Enable USBHostKeyboard
44 #define USBHOST_KEYBOARD 1
49 #define USBHOST_MOUSE 1
52 * Enable USBHostSerial or USBHostMultiSerial (if set > 1)
54 #define USBHOST_SERIAL 1
59 #define USBHOST_3GMODULE 1
64 #define USBHOST_MIDI 1
67 * Maximum number of interfaces of a usb device
72 * Maximum number of endpoints on each interface
74 #define MAX_ENDPOINT_PER_INTERFACE 3
77 * Maximum number of endpoint descriptors that can be allocated
79 #define MAX_ENDPOINT (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE)
82 * Maximum number of transfer descriptors that can be allocated
84 #define MAX_TD (MAX_ENDPOINT*2)
87 * usb_thread stack size
89 #define USB_THREAD_STACK (256*4 + MAX_HUB_NB*256*4)