V18.

Dependencies:   FATFileSystem mbed-rtos

Fork of USBHost by mbed official

Committer:
mbed_official
Date:
Wed Mar 06 16:27:14 2013 +0000
Revision:
0:a554658735bf
Child:
8:93da8ea2708b
first commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:a554658735bf 1 #ifndef USB_DEBUG_H
mbed_official 0:a554658735bf 2 #define USB_DEBUG_H
mbed_official 0:a554658735bf 3
mbed_official 0:a554658735bf 4 //Debug is disabled by default
mbed_official 0:a554658735bf 5 #define DEBUG 0
mbed_official 0:a554658735bf 6 #define DEBUG_TRANSFER 0
mbed_official 0:a554658735bf 7 #define DEBUG_EP_STATE 0
mbed_official 0:a554658735bf 8 #define DEBUG_EVENT 0
mbed_official 0:a554658735bf 9
mbed_official 0:a554658735bf 10 #if (DEBUG)
mbed_official 0:a554658735bf 11 #define USB_DBG(x, ...) std::printf("[USB_DBG: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 12 #else
mbed_official 0:a554658735bf 13 #define USB_DBG(x, ...)
mbed_official 0:a554658735bf 14 #endif
mbed_official 0:a554658735bf 15
mbed_official 0:a554658735bf 16 #if (DEBUG_TRANSFER)
mbed_official 0:a554658735bf 17 #define USB_DBG_TRANSFER(x, ...) std::printf("[USB_TRANSFER: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 18 #else
mbed_official 0:a554658735bf 19 #define USB_DBG_TRANSFER(x, ...)
mbed_official 0:a554658735bf 20 #endif
mbed_official 0:a554658735bf 21
mbed_official 0:a554658735bf 22 #if (DEBUG_EVENT)
mbed_official 0:a554658735bf 23 #define USB_DBG_EVENT(x, ...) std::printf("[USB_EVENT: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 24 #else
mbed_official 0:a554658735bf 25 #define USB_DBG_EVENT(x, ...)
mbed_official 0:a554658735bf 26 #endif
mbed_official 0:a554658735bf 27
mbed_official 0:a554658735bf 28 #define USB_INFO(x, ...) std::printf("[USB_INFO: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 29 #define USB_WARN(x, ...) std::printf("[USB_WARNING: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 30 #define USB_ERR(x, ...) std::printf("[USB_ERR: %s:%d]"x"\r\n", __FILE__, __LINE__, ##__VA_ARGS__);
mbed_official 0:a554658735bf 31
mbed_official 0:a554658735bf 32 #endif
mbed_official 0:a554658735bf 33
mbed_official 0:a554658735bf 34
mbed_official 0:a554658735bf 35