Simple USBHost library for Nucleo F446RE/F411RE/F401RE FRDM-KL46Z/KL25Z/F64F LPC4088/LPC1768

Dependencies:   FATFileSystem

Dependents:   F401RE-BTstack_example F401RE-USBHostMSD_HelloWorld

Fork of KL46Z-USBHost by Norimasa Okamoto

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mydebug.h Source File

mydebug.h

00001 #pragma once
00002 template<class SERIAL_T>
00003 void debug_hex(SERIAL_T& pc, const uint8_t* buf, int size)
00004 {
00005     for(int i = 0; i < size; i++) {
00006         pc.printf("%02x ", buf[i]);
00007         if (i%16 == 15) {
00008             pc.puts("\n");
00009         }
00010     }
00011     pc.puts("\n");
00012 }
00013