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