]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/USBHost/USBHost/USBHostConf.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / USBHost / USBHost / USBHostConf.h
1 /* mbed USBHost Library
2 * Copyright (c) 2006-2013 ARM Limited
3 *
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
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
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.
15 */
16
17 #ifndef USBHOST_CONF_H
18 #define USBHOST_CONF_H
19
20 /*
21 * Maximum number of devices that can be connected
22 * to the usb host
23 */
24 #define MAX_DEVICE_CONNECTED 5
25
26 /*
27 * Maximum of Hub connected to the usb host
28 */
29 #define MAX_HUB_NB 2
30
31 /*
32 * Maximum number of ports on a USB hub
33 */
34 #define MAX_HUB_PORT 4
35
36 /*
37 * Enable USBHostMSD
38 */
39 #define USBHOST_MSD 1
40
41 /*
42 * Enable USBHostKeyboard
43 */
44 #define USBHOST_KEYBOARD 1
45
46 /*
47 * Enable USBHostMouse
48 */
49 #define USBHOST_MOUSE 1
50
51 /*
52 * Enable USBHostSerial or USBHostMultiSerial (if set > 1)
53 */
54 #define USBHOST_SERIAL 1
55
56 /*
57 * Enable USB3Gmodule
58 */
59 #define USBHOST_3GMODULE 1
60
61 /*
62 * Enable USB MIDI
63 */
64 #define USBHOST_MIDI 1
65
66 /*
67 * Maximum number of interfaces of a usb device
68 */
69 #define MAX_INTF 4
70
71 /*
72 * Maximum number of endpoints on each interface
73 */
74 #define MAX_ENDPOINT_PER_INTERFACE 3
75
76 /*
77 * Maximum number of endpoint descriptors that can be allocated
78 */
79 #define MAX_ENDPOINT (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE)
80
81 /*
82 * Maximum number of transfer descriptors that can be allocated
83 */
84 #define MAX_TD (MAX_ENDPOINT*2)
85
86 /*
87 * usb_thread stack size
88 */
89 #define USB_THREAD_STACK (256*4 + MAX_HUB_NB*256*4)
90
91 #endif
Imprint / Impressum