forked from len0rd/rockbox
usb-drv-as3525: build with LOGF_ENABLE undefined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26902 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
5f87334d4f
commit
b43e15fe57
1 changed files with 2 additions and 1 deletions
|
@ -29,7 +29,6 @@
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "panic.h"
|
#include "panic.h"
|
||||||
/*#define LOGF_ENABLE*/
|
/*#define LOGF_ENABLE*/
|
||||||
#define LOGF_ENABLE
|
|
||||||
#include "logf.h"
|
#include "logf.h"
|
||||||
#include "usb_ch9.h"
|
#include "usb_ch9.h"
|
||||||
#include "usb_core.h"
|
#include "usb_core.h"
|
||||||
|
@ -834,8 +833,10 @@ static void handle_out_ep(int ep)
|
||||||
if (ep_sts & USB_EP_STAT_OUT_RCVD) {
|
if (ep_sts & USB_EP_STAT_OUT_RCVD) {
|
||||||
int dma_sts = uc_desc->status;
|
int dma_sts = uc_desc->status;
|
||||||
int dma_len = dma_sts & 0xffff;
|
int dma_len = dma_sts & 0xffff;
|
||||||
|
#ifdef LOGF_ENABLE
|
||||||
int dma_frm = (dma_sts >> 16) & 0x7ff;
|
int dma_frm = (dma_sts >> 16) & 0x7ff;
|
||||||
int dma_mst = dma_sts & 0xf8000000;
|
int dma_mst = dma_sts & 0xf8000000;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (!(dma_sts & USB_DMA_DESC_ZERO_LEN)) {
|
if (!(dma_sts & USB_DMA_DESC_ZERO_LEN)) {
|
||||||
logf("EP%d OUT token, st:%08x len:%d frm:%x data=%s epstate=%d\n", ep,
|
logf("EP%d OUT token, st:%08x len:%d frm:%x data=%s epstate=%d\n", ep,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue