Added to LPC4088-USBHost the USBHostMidi class. Plugin an usb midi interface to the usb host of lpc4088 allows to send midi event to the midi interface. For the moment I can not be able to get event from the interface by using the attacheNoteOn or other triggers...

Dependencies:   FATFileSystem mbed-rtos

Fork of LPC4088-USBHost by Norimasa Okamoto

Committer:
Grag38
Date:
Mon Apr 06 12:46:58 2015 +0000
Revision:
1:d652de69bd1a
Parent:
0:148fca6fd246
Added USBHostMidi to drive midi interface.; ; Tested to send Midi messages from LPC4088. This works.; ; Need to test with incomming events.

Who changed what in which revision?

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