Opencv 3.1 project on GR-PEACH board
Fork of gr-peach-opencv-project by
USBHost_custom/USBHost/USBHostConf.h@170:54ff26da7eb6, 2017-07-04 (annotated)
- Committer:
- thedo
- Date:
- Tue Jul 04 06:23:13 2017 +0000
- Revision:
- 170:54ff26da7eb6
- Parent:
- 166:3a9487d57a5c
project opencv 3.1 on GR PEACH board, no use SD card.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
thedo | 166:3a9487d57a5c | 1 | /* mbed USBHost Library |
thedo | 166:3a9487d57a5c | 2 | * Copyright (c) 2006-2013 ARM Limited |
thedo | 166:3a9487d57a5c | 3 | * |
thedo | 166:3a9487d57a5c | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
thedo | 166:3a9487d57a5c | 5 | * you may not use this file except in compliance with the License. |
thedo | 166:3a9487d57a5c | 6 | * You may obtain a copy of the License at |
thedo | 166:3a9487d57a5c | 7 | * |
thedo | 166:3a9487d57a5c | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
thedo | 166:3a9487d57a5c | 9 | * |
thedo | 166:3a9487d57a5c | 10 | * Unless required by applicable law or agreed to in writing, software |
thedo | 166:3a9487d57a5c | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
thedo | 166:3a9487d57a5c | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
thedo | 166:3a9487d57a5c | 13 | * See the License for the specific language governing permissions and |
thedo | 166:3a9487d57a5c | 14 | * limitations under the License. |
thedo | 166:3a9487d57a5c | 15 | */ |
thedo | 166:3a9487d57a5c | 16 | |
thedo | 166:3a9487d57a5c | 17 | #ifndef USBHOST_CONF_H |
thedo | 166:3a9487d57a5c | 18 | #define USBHOST_CONF_H |
thedo | 166:3a9487d57a5c | 19 | |
thedo | 166:3a9487d57a5c | 20 | /* |
thedo | 166:3a9487d57a5c | 21 | * Maximum number of devices that can be connected |
thedo | 166:3a9487d57a5c | 22 | * to the usb host |
thedo | 166:3a9487d57a5c | 23 | */ |
thedo | 166:3a9487d57a5c | 24 | #define MAX_DEVICE_CONNECTED 5 |
thedo | 166:3a9487d57a5c | 25 | |
thedo | 166:3a9487d57a5c | 26 | /* |
thedo | 166:3a9487d57a5c | 27 | * Maximum of Hub connected to the usb host |
thedo | 166:3a9487d57a5c | 28 | */ |
thedo | 166:3a9487d57a5c | 29 | #define MAX_HUB_NB 2 |
thedo | 166:3a9487d57a5c | 30 | |
thedo | 166:3a9487d57a5c | 31 | /* |
thedo | 166:3a9487d57a5c | 32 | * Maximum number of ports on a USB hub |
thedo | 166:3a9487d57a5c | 33 | */ |
thedo | 166:3a9487d57a5c | 34 | #define MAX_HUB_PORT 4 |
thedo | 166:3a9487d57a5c | 35 | |
thedo | 166:3a9487d57a5c | 36 | /* |
thedo | 166:3a9487d57a5c | 37 | * Enable USBHostMSD |
thedo | 166:3a9487d57a5c | 38 | */ |
thedo | 166:3a9487d57a5c | 39 | #define USBHOST_MSD 1 |
thedo | 166:3a9487d57a5c | 40 | |
thedo | 166:3a9487d57a5c | 41 | /* |
thedo | 166:3a9487d57a5c | 42 | * Enable USBHostKeyboard |
thedo | 166:3a9487d57a5c | 43 | */ |
thedo | 166:3a9487d57a5c | 44 | #define USBHOST_KEYBOARD 1 |
thedo | 166:3a9487d57a5c | 45 | |
thedo | 166:3a9487d57a5c | 46 | /* |
thedo | 166:3a9487d57a5c | 47 | * Enable USBHostMouse |
thedo | 166:3a9487d57a5c | 48 | */ |
thedo | 166:3a9487d57a5c | 49 | #define USBHOST_MOUSE 1 |
thedo | 166:3a9487d57a5c | 50 | |
thedo | 166:3a9487d57a5c | 51 | /* |
thedo | 166:3a9487d57a5c | 52 | * Enable USBHostSerial or USBHostMultiSerial (if set > 1) |
thedo | 166:3a9487d57a5c | 53 | */ |
thedo | 166:3a9487d57a5c | 54 | #define USBHOST_SERIAL 1 |
thedo | 166:3a9487d57a5c | 55 | |
thedo | 166:3a9487d57a5c | 56 | /* |
thedo | 166:3a9487d57a5c | 57 | * Enable USB3Gmodule |
thedo | 166:3a9487d57a5c | 58 | */ |
thedo | 166:3a9487d57a5c | 59 | #define USBHOST_3GMODULE 1 |
thedo | 166:3a9487d57a5c | 60 | |
thedo | 166:3a9487d57a5c | 61 | /* |
thedo | 166:3a9487d57a5c | 62 | * Enable USB MIDI |
thedo | 166:3a9487d57a5c | 63 | */ |
thedo | 166:3a9487d57a5c | 64 | #define USBHOST_MIDI 1 |
thedo | 166:3a9487d57a5c | 65 | |
thedo | 166:3a9487d57a5c | 66 | /* |
thedo | 166:3a9487d57a5c | 67 | * Maximum number of interfaces of a usb device |
thedo | 166:3a9487d57a5c | 68 | */ |
thedo | 166:3a9487d57a5c | 69 | #define MAX_INTF 4 |
thedo | 166:3a9487d57a5c | 70 | |
thedo | 166:3a9487d57a5c | 71 | /* |
thedo | 166:3a9487d57a5c | 72 | * Maximum number of endpoints on each interface |
thedo | 166:3a9487d57a5c | 73 | */ |
thedo | 166:3a9487d57a5c | 74 | #define MAX_ENDPOINT_PER_INTERFACE 3 |
thedo | 166:3a9487d57a5c | 75 | |
thedo | 166:3a9487d57a5c | 76 | /* |
thedo | 166:3a9487d57a5c | 77 | * Maximum number of endpoint descriptors that can be allocated |
thedo | 166:3a9487d57a5c | 78 | */ |
thedo | 166:3a9487d57a5c | 79 | #define MAX_ENDPOINT (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE) |
thedo | 166:3a9487d57a5c | 80 | |
thedo | 166:3a9487d57a5c | 81 | /* |
thedo | 166:3a9487d57a5c | 82 | * Maximum number of transfer descriptors that can be allocated |
thedo | 166:3a9487d57a5c | 83 | */ |
thedo | 166:3a9487d57a5c | 84 | #define MAX_TD (MAX_ENDPOINT*2) |
thedo | 166:3a9487d57a5c | 85 | |
thedo | 166:3a9487d57a5c | 86 | /* |
thedo | 166:3a9487d57a5c | 87 | * usb_thread stack size |
thedo | 166:3a9487d57a5c | 88 | */ |
thedo | 166:3a9487d57a5c | 89 | #define USB_THREAD_STACK (256*4 + MAX_HUB_NB*256*4) |
thedo | 166:3a9487d57a5c | 90 | |
thedo | 166:3a9487d57a5c | 91 | #endif |