2018.07.26

Dependencies:   FATFileSystem3 mbed-rtos

Fork of USBHost by mbed official

Committer:
samux
Date:
Tue Mar 12 17:23:37 2013 +0000
Revision:
4:b320d68e98e7
Parent:
0:a554658735bf
Child:
8:93da8ea2708b
bug fixes - support composite device

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:a554658735bf 1 #ifndef USBHOST_CONF_H
mbed_official 0:a554658735bf 2 #define USBHOST_CONF_H
mbed_official 0:a554658735bf 3
mbed_official 0:a554658735bf 4 /*
mbed_official 0:a554658735bf 5 * Maximum number of devices that can be connected
mbed_official 0:a554658735bf 6 * to the usb host
mbed_official 0:a554658735bf 7 */
samux 4:b320d68e98e7 8 #define MAX_DEVICE_CONNECTED 5
mbed_official 0:a554658735bf 9
mbed_official 0:a554658735bf 10 /*
mbed_official 0:a554658735bf 11 * Maximum of Hub connected to the usb host
mbed_official 0:a554658735bf 12 */
samux 4:b320d68e98e7 13 #define MAX_HUB_NB 2
mbed_official 0:a554658735bf 14
mbed_official 0:a554658735bf 15 /*
mbed_official 0:a554658735bf 16 * Maximum number of ports on a USB hub
mbed_official 0:a554658735bf 17 */
mbed_official 0:a554658735bf 18 #define MAX_HUB_PORT 4
mbed_official 0:a554658735bf 19
mbed_official 0:a554658735bf 20 /*
mbed_official 0:a554658735bf 21 * Enable USBHostMSD
mbed_official 0:a554658735bf 22 */
mbed_official 0:a554658735bf 23 #define USBHOST_MSD 1
mbed_official 0:a554658735bf 24
mbed_official 0:a554658735bf 25 /*
mbed_official 0:a554658735bf 26 * Enable USBHostKeyboard
mbed_official 0:a554658735bf 27 */
mbed_official 0:a554658735bf 28 #define USBHOST_KEYBOARD 1
mbed_official 0:a554658735bf 29
mbed_official 0:a554658735bf 30 /*
mbed_official 0:a554658735bf 31 * Enable USBHostMouse
mbed_official 0:a554658735bf 32 */
mbed_official 0:a554658735bf 33 #define USBHOST_MOUSE 1
mbed_official 0:a554658735bf 34
mbed_official 0:a554658735bf 35 /*
mbed_official 0:a554658735bf 36 * Enable USBHostSerial
mbed_official 0:a554658735bf 37 */
mbed_official 0:a554658735bf 38 #define USBHOST_SERIAL 1
mbed_official 0:a554658735bf 39
mbed_official 0:a554658735bf 40 /*
mbed_official 0:a554658735bf 41 * Maximum number of interfaces of a usb device
mbed_official 0:a554658735bf 42 */
samux 4:b320d68e98e7 43 #define MAX_INTF 3
mbed_official 0:a554658735bf 44
mbed_official 0:a554658735bf 45 /*
mbed_official 0:a554658735bf 46 * Maximum number of endpoints on each interface
mbed_official 0:a554658735bf 47 */
mbed_official 0:a554658735bf 48 #define MAX_ENDPOINT_PER_INTERFACE 3
mbed_official 0:a554658735bf 49
mbed_official 0:a554658735bf 50 /*
mbed_official 0:a554658735bf 51 * Maximum number of endpoint descriptors that can be allocated
mbed_official 0:a554658735bf 52 */
mbed_official 0:a554658735bf 53 #define MAX_ENDPOINT (MAX_DEVICE_CONNECTED * MAX_INTF * MAX_ENDPOINT_PER_INTERFACE)
mbed_official 0:a554658735bf 54
mbed_official 0:a554658735bf 55 /*
mbed_official 0:a554658735bf 56 * Maximum number of transfer descriptors that can be allocated
mbed_official 0:a554658735bf 57 */
mbed_official 0:a554658735bf 58 #define MAX_TD (MAX_ENDPOINT*2)
mbed_official 0:a554658735bf 59
mbed_official 0:a554658735bf 60 /*
mbed_official 0:a554658735bf 61 * usb_thread stack size
mbed_official 0:a554658735bf 62 */
samux 4:b320d68e98e7 63 #define USB_THREAD_STACK (256*4 + MAX_HUB_NB*256*4)
mbed_official 0:a554658735bf 64
mbed_official 0:a554658735bf 65 #endif