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
- Committer:
- hsgw
- Date:
- 2014-10-13
- Revision:
- 27:23fa4e04b1db
- Parent:
- 11:61843badd06e
File content as of revision 27:23fa4e04b1db:
#pragma once template<class SERIAL_T> void debug_hex(SERIAL_T& pc, const uint8_t* buf, int size) { for(int i = 0; i < size; i++) { pc.printf("%02x ", buf[i]); if (i%16 == 15) { pc.puts("\n"); } } pc.puts("\n"); }