Skip to content

Commit 2029ca9

Browse files
author
Lars Pötter
committed
also fixed pico_trac() log messages.
1 parent 0693462 commit 2029ca9

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/portable/raspberrypi/pio_usb/hcd_pio_usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,11 @@ bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet
150150
// // so if any transfer is active on epx, we are busy. Interrupt endpoints have their own
151151
// // EPX so ep->active will only be busy if there is a pending transfer on that interrupt endpoint
152152
// // on that device
153-
// pico_trace("hcd_edpt_busy dev addr %d ep_addr 0x%x\n", dev_addr, ep_addr);
153+
// pico_trace("hcd_edpt_busy dev addr %d ep_addr 0x%x\r\n", dev_addr, ep_addr);
154154
// struct hw_endpoint *ep = get_dev_ep(dev_addr, ep_addr);
155155
// assert(ep);
156156
// bool busy = ep->active;
157-
// pico_trace("busy == %d\n", busy);
157+
// pico_trace("busy == %d\r\n", busy);
158158
// return busy;
159159
//}
160160

src/portable/raspberrypi/rp2040/dcd_rp2040.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ static void hw_endpoint_xfer(uint8_t ep_addr, uint8_t *buffer, uint16_t total_by
189189
static void __tusb_irq_path_func(hw_handle_buff_status)(void)
190190
{
191191
uint32_t remaining_buffers = usb_hw->buf_status;
192-
pico_trace("buf_status = 0x%08lx\n", remaining_buffers);
192+
pico_trace("buf_status = 0x%08lx\r\n", remaining_buffers);
193193
uint bit = 1u;
194194
for (uint8_t i = 0; remaining_buffers && i < USB_MAX_ENDPOINTS * 2; i++)
195195
{
@@ -331,7 +331,7 @@ static void __tusb_irq_path_func(dcd_rp2040_irq)(void)
331331
// SE0 for 2.5 us or more (will last at least 10ms)
332332
if ( status & USB_INTS_BUS_RESET_BITS )
333333
{
334-
pico_trace("BUS RESET\n");
334+
pico_trace("BUS RESET\r\n");
335335

336336
handled |= USB_INTS_BUS_RESET_BITS;
337337

@@ -565,7 +565,7 @@ void dcd_edpt_close (uint8_t rhport, uint8_t ep_addr)
565565
{
566566
(void) rhport;
567567

568-
pico_trace("dcd_edpt_close %02x\n", ep_addr);
568+
pico_trace("dcd_edpt_close %02x\r\n", ep_addr);
569569
hw_endpoint_close(ep_addr);
570570
}
571571

src/portable/raspberrypi/rp2040/rp2040_usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ static uint16_t __tusb_irq_path_func(sync_ep_buffer)(struct hw_endpoint *ep, uin
276276
// Short packet
277277
if (xferred_bytes < ep->wMaxPacketSize)
278278
{
279-
pico_trace(" Short packet on buffer %d with %u bytes\n", buf_id, xferred_bytes);
279+
pico_trace(" Short packet on buffer %d with %u bytes\r\n", buf_id, xferred_bytes);
280280
// Reduce total length as this is last packet
281281
ep->remaining_len = 0;
282282
}
@@ -352,7 +352,7 @@ bool __tusb_irq_path_func(hw_endpoint_xfer_continue)(struct hw_endpoint *ep)
352352
// If we are done then notify tinyusb
353353
if (ep->remaining_len == 0)
354354
{
355-
pico_trace("Completed transfer of %d bytes on ep %d %s\n",
355+
pico_trace("Completed transfer of %d bytes on ep %d %s\r\n",
356356
ep->xferred_len, tu_edpt_number(ep->ep_addr), ep_dir_string[tu_edpt_dir(ep->ep_addr)]);
357357
// Notify caller we are done so it can notify the tinyusb stack
358358
hw_endpoint_lock_update(ep, -1);

0 commit comments

Comments
 (0)