USB Host Driver with Socket Modem support. Works with revision 323 of mbed-src but broken with any later version.
Dependencies: FATFileSystem
Fork of F401RE-USBHost by
USBHost/mydebug.h@11:61843badd06e, 2014-06-09 (annotated)
- Committer:
- va009039
- Date:
- Mon Jun 09 09:00:49 2014 +0000
- Revision:
- 11:61843badd06e
Simple USBHost for Nucleo F401RE
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 |