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
Diff: USBHost/mydebug.h
- Revision:
- 24:5396b6a93262
- Parent:
- 11:61843badd06e
--- a/USBHost/mydebug.h Sun May 01 03:18:11 2016 +0000 +++ b/USBHost/mydebug.h Mon Jun 13 17:21:07 2016 +0000 @@ -1,13 +1,12 @@ #pragma once -template<class SERIAL_T> -void debug_hex(SERIAL_T& pc, const uint8_t* buf, int size) + +void debug_hex(unsigned char* buf, int size) { for(int i = 0; i < size; i++) { - pc.printf("%02x ", buf[i]); + printf("%02x ", buf[i]); if (i%16 == 15) { - pc.puts("\n"); + printf("\n"); } } - pc.puts("\n"); + printf("\n"); } -