USB host library, support isochronous,bulk,interrupt and control.
Dependents: BaseUsbHost_example BaseJpegDecode_example SimpleJpegDecode_example
Import programBaseUsbHost_example
BaseUsbHost example program
Diff: BaseUsbHostDebug.h
- Revision:
- 3:ae77d63a1eda
- Parent:
- 0:b7d6879637a8
--- a/BaseUsbHostDebug.h Tue Dec 11 15:26:54 2012 +0000 +++ b/BaseUsbHostDebug.h Sun Jan 06 11:45:18 2013 +0000 @@ -1,6 +1,6 @@ -// BaseUsbHostDebug.h 2012/12/2 -#ifndef BASE_USB_HOST_DEBUG_H -#define BASE_USB_HOST_DEBUG_H +// BaseUsbHostDebug.h 2013/1/2 +#pragma once + #ifdef DEBUG #define DBG(...) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); #define DBG_PRINTF(...) do{fprintf(stderr,__VA_ARGS__);}while(0); @@ -29,5 +29,3 @@ void print_ied(FILE* stream, HCED* ed); void print_bytes(FILE* stream, char* s, uint8_t* buf, int len); void print_hex(FILE* stream, uint8_t* p, int len); - -#endif //BASE_USB_HOST_DEBUG_H