Renesas GR-PEACH OpenCV Development / gr-peach-opencv-project-sd-card_update

Fork of gr-peach-opencv-project-sd-card by the do

Committer:
thedo
Date:
Fri Jul 21 01:26:54 2017 +0000
Revision:
167:2ee3e82cb6f5
Parent:
166:240bc5a0f42a
gr-peach-opencv-project-sd-card

Who changed what in which revision?

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