|
45 | 45 | #error "Unsupported MCU"
|
46 | 46 | #endif
|
47 | 47 |
|
| 48 | +#define TU_RUSB2_DCD_DBG 0 |
| 49 | + |
48 | 50 | //--------------------------------------------------------------------+
|
49 | 51 | // MACRO TYPEDEF CONSTANT ENUM
|
50 | 52 | //--------------------------------------------------------------------+
|
@@ -444,7 +446,7 @@ static bool process_pipe_xfer(int buffer_type, uint8_t ep_addr, void* buffer, ui
|
444 | 446 | *ctr = RUSB2_PIPE_CTR_PID_BUF;
|
445 | 447 | }
|
446 | 448 | }
|
447 |
| - // TU_LOG1("X %x %d %d\r\n", ep_addr, total_bytes, buffer_type); |
| 449 | + TU_LOG(TU_RUSB2_DCD_DBG ,"X %x %d %d\r\n", ep_addr, total_bytes, buffer_type); |
448 | 450 | return true;
|
449 | 451 | }
|
450 | 452 |
|
@@ -487,7 +489,7 @@ static void process_pipe_brdy(uint8_t rhport, unsigned num)
|
487 | 489 | dcd_event_xfer_complete(rhport, pipe->ep,
|
488 | 490 | pipe->length - pipe->remaining,
|
489 | 491 | XFER_RESULT_SUCCESS, true);
|
490 |
| - // TU_LOG1("C %d %d\r\n", num, pipe->length - pipe->remaining); |
| 492 | + TU_LOG(TU_RUSB2_DCD_DBG, "C %d %d\r\n", num, pipe->length - pipe->remaining); |
491 | 493 | }
|
492 | 494 | }
|
493 | 495 |
|
@@ -691,7 +693,7 @@ bool dcd_edpt_open(uint8_t rhport, tusb_desc_endpoint_t const * ep_desc)
|
691 | 693 | if (dir || (xfer != TUSB_XFER_BULK)) {
|
692 | 694 | *ctr = RUSB2_PIPE_CTR_PID_BUF;
|
693 | 695 | }
|
694 |
| - // TU_LOG1("O %d %x %x\r\n", RUSB2->PIPESEL, RUSB2->PIPECFG, RUSB2->PIPEMAXP); |
| 696 | + TU_LOG(TU_RUSB2_DCD_DBG, "O %d %x %x\r\n", RUSB2->PIPESEL, RUSB2->PIPECFG, RUSB2->PIPEMAXP); |
695 | 697 | dcd_int_enable(rhport);
|
696 | 698 |
|
697 | 699 | return true;
|
|
0 commit comments