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
USBHost/mydebug.h@24:5396b6a93262, 2016-06-13 (annotated)
- Committer:
- DieterGraef
- Date:
- Mon Jun 13 17:21:07 2016 +0000
- Revision:
- 24:5396b6a93262
- Parent:
- 11:61843badd06e
USB Host for STM32F746 DISCO Board. At the moment you can only use either the High Speed Port or the Fast Speed Port.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
va009039 | 11:61843badd06e | 1 | #pragma once |
DieterGraef | 24:5396b6a93262 | 2 | |
DieterGraef | 24:5396b6a93262 | 3 | void debug_hex(unsigned char* buf, int size) |
va009039 | 11:61843badd06e | 4 | { |
va009039 | 11:61843badd06e | 5 | for(int i = 0; i < size; i++) { |
DieterGraef | 24:5396b6a93262 | 6 | printf("%02x ", buf[i]); |
va009039 | 11:61843badd06e | 7 | if (i%16 == 15) { |
DieterGraef | 24:5396b6a93262 | 8 | printf("\n"); |
va009039 | 11:61843badd06e | 9 | } |
va009039 | 11:61843badd06e | 10 | } |
DieterGraef | 24:5396b6a93262 | 11 | printf("\n"); |
va009039 | 11:61843badd06e | 12 | } |