rk27xx: fix usb logf
Change-Id: I1bae5613fd96587bcdcf179ec4132ce75224d398
This commit is contained in:
parent
3875f576e8
commit
97f1466cd4
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,11 @@ typedef volatile uint32_t reg32;
|
|||
|
||||
#ifdef LOGF_ENABLE
|
||||
#define XFER_DIR_STR(dir) ((dir) ? "IN" : "OUT")
|
||||
#define XFER_TYPE_STR(type) \
|
||||
((type) == USB_ENDPOINT_XFER_CONTROL ? "CTRL" : \
|
||||
((type) == USB_ENDPOINT_XFER_ISOC ? "ISOC" : \
|
||||
((type) == USB_ENDPOINT_XFER_BULK ? "BULK" : \
|
||||
((type) == USB_ENDPOINT_XFER_INT ? "INTR" : "INVL"))))
|
||||
#endif
|
||||
|
||||
struct endpoint_t {
|
||||
|
|
Loading…
Reference in a new issue