My Fork of F401RE-USBHost. Add USBHostMIDI functions (originaled by Kaoru Shoji http://mbed.org/users/kshoji/code/USBHostMIDI/)
Dependents: F401RE-USBHostMIDI_RecieveExample
Fork of F401RE-USBHost by
USBHost/mydebug.h@27:23fa4e04b1db, 2014-10-13 (annotated)
- Committer:
- hsgw
- Date:
- Mon Oct 13 19:33:40 2014 +0000
- Revision:
- 27:23fa4e04b1db
- Parent:
- 11:61843badd06e
Fix freeze bug on F401RE.; callback functions are initialized by dummy functions.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 11:61843badd06e | 1 | #pragma once |
va009039 | 11:61843badd06e | 2 | template<class SERIAL_T> |
va009039 | 11:61843badd06e | 3 | void debug_hex(SERIAL_T& pc, const uint8_t* buf, int size) |
va009039 | 11:61843badd06e | 4 | { |
va009039 | 11:61843badd06e | 5 | for(int i = 0; i < size; i++) { |
va009039 | 11:61843badd06e | 6 | pc.printf("%02x ", buf[i]); |
va009039 | 11:61843badd06e | 7 | if (i%16 == 15) { |
va009039 | 11:61843badd06e | 8 | pc.puts("\n"); |
va009039 | 11:61843badd06e | 9 | } |
va009039 | 11:61843badd06e | 10 | } |
va009039 | 11:61843badd06e | 11 | pc.puts("\n"); |
va009039 | 11:61843badd06e | 12 | } |
va009039 | 11:61843badd06e | 13 |