My Fork of F401RE-USBHost. Add USBHostMIDI functions (originaled by Kaoru Shoji http://mbed.org/users/kshoji/code/USBHostMIDI/)

Dependencies:   FATFileSystem

Dependents:   F401RE-USBHostMIDI_RecieveExample

Fork of F401RE-USBHost by Norimasa Okamoto

Revision:
27:23fa4e04b1db
Parent:
26:077ab26227c6
diff -r 077ab26227c6 -r 23fa4e04b1db USBHostMIDI/USBHostMIDI.h
--- a/USBHostMIDI/USBHostMIDI.h	Thu Sep 18 12:32:33 2014 +0000
+++ b/USBHostMIDI/USBHostMIDI.h	Mon Oct 13 19:33:40 2014 +0000
@@ -347,6 +347,27 @@
     void (*singleByte)(uint8_t);
 
     bool sendMidiBuffer(uint8_t data0, uint8_t data1, uint8_t data2, uint8_t data3);
+    
+    // dummy callback function
+    static void callbackDummysingleByte(uint8_t a) {
+        USB_INFO("Not attached command comming! First byte %d\n", a);
+        return;
+    }
+    
+    static void callbackDummy2Bytes(uint8_t a, uint8_t b){
+        callbackDummysingleByte(a);
+    }
+    
+    static void callbackDummy3Bytes(uint8_t a, uint8_t b, uint8_t c){
+        callbackDummysingleByte(a);
+    }
+    
+    static void callbackDummysystemExclusive(uint8_t *a, uint16_t b, bool c){
+        callbackDummysingleByte(a[0]);
+    }
+    static void callbackDummypitchBend(uint8_t a, uint16_t b){
+        callbackDummysingleByte(a);
+    }
 
     int midi_intf;
     bool midi_device_found;