dari pinpin usb langsung

Dependencies:   mbed

Fork of Nucleo_Ex04_USBPAD by woodstock .

Committer:
beaglescout007
Date:
Tue Mar 15 11:39:04 2016 +0000
Revision:
0:b5f79b4f741d
Release

Who changed what in which revision?

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