Simple USBHost library for STM32F746NG Discovery board. Only either the Fastspeed or the Highspeed port can be used( not both together)

Dependents:   DISCO-F746NG_USB_Host

Fork of KL46Z-USBHost by Norimasa Okamoto

USBHost/mydebug.h

Committer:
va009039
Date:
2014-06-09
Revision:
11:61843badd06e
Child:
24:5396b6a93262

File content as of revision 11:61843badd06e:

#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");
}