Skip to content

Commit 61f00c0

Browse files
authored
Merge pull request hathach#2135 from JustAnother1/master
made line ends consistent.
2 parents de4ad2c + 1b04db2 commit 61f00c0

File tree

14 files changed

+79
-79
lines changed

14 files changed

+79
-79
lines changed

src/class/cdc/cdc_host.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ static uint32_t ftdi_232bm_baud_to_divisor(uint32_t baud)
976976
static bool ftdi_sio_set_baudrate(cdch_interface_t* p_cdc, uint32_t baudrate, tuh_xfer_cb_t complete_cb, uintptr_t user_data)
977977
{
978978
uint16_t const divisor = (uint16_t) ftdi_232bm_baud_to_divisor(baudrate);
979-
TU_LOG_DRV("CDC FTDI Set BaudRate = %lu, divisor = 0x%04x\n", baudrate, divisor);
979+
TU_LOG_DRV("CDC FTDI Set BaudRate = %lu, divisor = 0x%04x\r\n", baudrate, divisor);
980980

981981
p_cdc->user_control_cb = complete_cb;
982982
_ftdi_requested_baud = baudrate;
@@ -1111,7 +1111,7 @@ static bool cp210x_ifc_enable(cdch_interface_t* p_cdc, uint16_t enabled, tuh_xfe
11111111
}
11121112

11131113
static bool cp210x_set_baudrate(cdch_interface_t* p_cdc, uint32_t baudrate, tuh_xfer_cb_t complete_cb, uintptr_t user_data) {
1114-
TU_LOG_DRV("CDC CP210x Set BaudRate = %lu\n", baudrate);
1114+
TU_LOG_DRV("CDC CP210x Set BaudRate = %lu\r\n", baudrate);
11151115
uint32_t baud_le = tu_htole32(baudrate);
11161116
p_cdc->user_control_cb = complete_cb;
11171117
return cp210x_set_request(p_cdc, CP210X_SET_BAUDRATE, 0, (uint8_t *) &baud_le, 4,

src/class/video/video_device.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -616,17 +616,17 @@ static bool _close_vc_itf(uint8_t rhport, videod_interface_t *self)
616616
* @param[in] altnum The target alternate setting number. */
617617
static bool _open_vc_itf(uint8_t rhport, videod_interface_t *self, uint_fast8_t altnum)
618618
{
619-
TU_LOG_DRV(" open VC %d\n", altnum);
619+
TU_LOG_DRV(" open VC %d\r\n", altnum);
620620
uint8_t const *beg = self->beg;
621621
uint8_t const *end = beg + self->len;
622622

623623
/* The first descriptor is a video control interface descriptor. */
624624
uint8_t const *cur = _find_desc_itf(beg, end, _desc_itfnum(beg), altnum);
625-
TU_LOG_DRV(" cur %d\n", cur - beg);
625+
TU_LOG_DRV(" cur %d\r\n", cur - beg);
626626
TU_VERIFY(cur < end);
627627

628628
tusb_desc_vc_itf_t const *vc = (tusb_desc_vc_itf_t const *)cur;
629-
TU_LOG_DRV(" bInCollection %d\n", vc->ctl.bInCollection);
629+
TU_LOG_DRV(" bInCollection %d\r\n", vc->ctl.bInCollection);
630630
/* Support for up to 2 streaming interfaces only. */
631631
TU_ASSERT(vc->ctl.bInCollection <= CFG_TUD_VIDEO_STREAMING);
632632

@@ -635,7 +635,7 @@ static bool _open_vc_itf(uint8_t rhport, videod_interface_t *self, uint_fast8_t
635635

636636
/* Advance to the next descriptor after the class-specific VC interface header descriptor. */
637637
cur += vc->std.bLength + vc->ctl.bLength;
638-
TU_LOG_DRV(" bNumEndpoints %d\n", vc->std.bNumEndpoints);
638+
TU_LOG_DRV(" bNumEndpoints %d\r\n", vc->std.bNumEndpoints);
639639
/* Open the notification endpoint if it exist. */
640640
if (vc->std.bNumEndpoints) {
641641
/* Support for 1 endpoint only. */
@@ -669,7 +669,7 @@ static bool _init_vs_configuration(videod_streaming_interface_t *stm)
669669
static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint_fast8_t altnum)
670670
{
671671
uint_fast8_t i;
672-
TU_LOG_DRV(" reopen VS %d\n", altnum);
672+
TU_LOG_DRV(" reopen VS %d\r\n", altnum);
673673
uint8_t const *desc = _videod_itf[stm->index_vc].beg;
674674

675675
/* Close endpoints of previous settings. */
@@ -679,7 +679,7 @@ static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint
679679
uint8_t ep_adr = _desc_ep_addr(desc + ofs_ep);
680680
usbd_edpt_close(rhport, ep_adr);
681681
stm->desc.ep[i] = 0;
682-
TU_LOG_DRV(" close EP%02x\n", ep_adr);
682+
TU_LOG_DRV(" close EP%02x\r\n", ep_adr);
683683
}
684684

685685
/* clear transfer management information */
@@ -716,12 +716,12 @@ static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint
716716
}
717717
TU_ASSERT(usbd_edpt_open(rhport, ep));
718718
stm->desc.ep[i] = (uint16_t) (cur - desc);
719-
TU_LOG_DRV(" open EP%02x\n", _desc_ep_addr(cur));
719+
TU_LOG_DRV(" open EP%02x\r\n", _desc_ep_addr(cur));
720720
}
721721
if (altnum) {
722722
stm->state = VS_STATE_STREAMING;
723723
}
724-
TU_LOG_DRV(" done\n");
724+
TU_LOG_DRV(" done\r\n");
725725
return true;
726726
}
727727

src/common/tusb_fifo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ static uint16_t _tu_fifo_write_n(tu_fifo_t* f, const void * data, uint16_t n, tu
539539
// Advance index
540540
f->wr_idx = advance_index(f->depth, wr_idx, n);
541541

542-
TU_LOG(TU_FIFO_DBG, "\tnew_wr = %u\n", f->wr_idx);
542+
TU_LOG(TU_FIFO_DBG, "\tnew_wr = %u\r\n", f->wr_idx);
543543
}
544544

545545
_ff_unlock(f->mutex_wr);

src/portable/dialog/da146xx/dcd_da146xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ static void handle_epx_tx_ev(xfer_ctl_t *xfer)
651651
}
652652
if (txs & USB_USB_TXS1_REG_USB_TX_URUN_Msk)
653653
{
654-
TU_LOG1("EP %d FIFO underrun\n", epnum);
654+
TU_LOG1("EP %d FIFO underrun\r\n", epnum);
655655
}
656656
// Start next or repeated packet.
657657
start_tx_packet(xfer);

src/portable/mentor/musb/dcd_musb.c

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ static bool handle_xfer_in(uint_fast8_t ep_addr)
317317
const unsigned mps = regs->TXMAXP;
318318
const unsigned len = TU_MIN(mps, rem);
319319
void *buf = pipe->buf;
320-
// TU_LOG1(" %p mps %d len %d rem %d\n", buf, mps, len, rem);
320+
// TU_LOG1(" %p mps %d len %d rem %d\r\n", buf, mps, len, rem);
321321
if (len) {
322322
if (_dcd.pipe_buf_is_fifo[TUSB_DIR_IN] & TU_BIT(epnum_minus1)) {
323323
pipe_read_write_packet_ff(buf, &USB0->FIFO1_WORD + epnum_minus1, len, TUSB_DIR_IN);
@@ -328,7 +328,7 @@ static bool handle_xfer_in(uint_fast8_t ep_addr)
328328
pipe->remaining = rem - len;
329329
}
330330
regs->TXCSRL = USB_TXCSRL1_TXRDY;
331-
// TU_LOG1(" TXCSRL%d = %x %d\n", epnum_minus1 + 1, regs->TXCSRL, rem - len);
331+
// TU_LOG1(" TXCSRL%d = %x %d\r\n", epnum_minus1 + 1, regs->TXCSRL, rem - len);
332332
return false;
333333
}
334334

@@ -337,7 +337,7 @@ static bool handle_xfer_out(uint_fast8_t ep_addr)
337337
unsigned epnum_minus1 = tu_edpt_number(ep_addr) - 1;
338338
pipe_state_t *pipe = &_dcd.pipe[tu_edpt_dir(ep_addr)][epnum_minus1];
339339
volatile hw_endpoint_t *regs = edpt_regs(epnum_minus1);
340-
// TU_LOG1(" RXCSRL%d = %x\n", epnum_minus1 + 1, regs->RXCSRL);
340+
// TU_LOG1(" RXCSRL%d = %x\r\n", epnum_minus1 + 1, regs->RXCSRL);
341341

342342
TU_ASSERT(regs->RXCSRL & USB_RXCSRL1_RXRDY);
343343

@@ -399,14 +399,14 @@ static bool edpt0_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t *buffer, uint16_
399399
* may have already finished and received the next setup packet
400400
* without calling this function, so we have no choice but to
401401
* invoke the callback function of status packet here. */
402-
// TU_LOG1(" STATUS OUT USB0->CSRL0 = %x\n", USB0->CSRL0);
402+
// TU_LOG1(" STATUS OUT USB0->CSRL0 = %x\r\n", USB0->CSRL0);
403403
_dcd.status_out = 0;
404404
if (req == REQUEST_TYPE_INVALID) {
405405
dcd_event_xfer_complete(rhport, ep_addr, total_bytes, XFER_RESULT_SUCCESS, false);
406406
} else {
407407
/* The next setup packet has already been received, it aborts
408408
* invoking callback function to avoid confusing TUSB stack. */
409-
TU_LOG1("Drop CONTROL_STAGE_ACK\n");
409+
TU_LOG1("Drop CONTROL_STAGE_ACK\r\n");
410410
}
411411
return true;
412412
}
@@ -431,16 +431,16 @@ static bool edpt0_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t *buffer, uint16_
431431
} else {
432432
USB0->CSRL0 = USB_CSRL0_TXRDY; /* Flush TX FIFO to return ACK. */
433433
}
434-
// TU_LOG1(" IN USB0->CSRL0 = %x\n", USB0->CSRL0);
434+
// TU_LOG1(" IN USB0->CSRL0 = %x\r\n", USB0->CSRL0);
435435
} else {
436-
// TU_LOG1(" OUT USB0->CSRL0 = %x\n", USB0->CSRL0);
436+
// TU_LOG1(" OUT USB0->CSRL0 = %x\r\n", USB0->CSRL0);
437437
_dcd.pipe0.buf = buffer;
438438
_dcd.pipe0.length = len;
439439
_dcd.pipe0.remaining = len;
440440
USB0->CSRL0 = USB_CSRL0_RXRDYC; /* Clear RX FIFO to return ACK. */
441441
}
442442
} else if (dir_in) {
443-
// TU_LOG1(" STATUS IN USB0->CSRL0 = %x\n", USB0->CSRL0);
443+
// TU_LOG1(" STATUS IN USB0->CSRL0 = %x\r\n", USB0->CSRL0);
444444
_dcd.pipe0.buf = NULL;
445445
_dcd.pipe0.length = 0;
446446
_dcd.pipe0.remaining = 0;
@@ -454,7 +454,7 @@ static void process_ep0(uint8_t rhport)
454454
{
455455
uint_fast8_t csrl = USB0->CSRL0;
456456

457-
// TU_LOG1(" EP0 USB0->CSRL0 = %x\n", csrl);
457+
// TU_LOG1(" EP0 USB0->CSRL0 = %x\r\n", csrl);
458458

459459
if (csrl & USB_CSRL0_STALLED) {
460460
/* Returned STALL packet to HOST. */
@@ -464,7 +464,7 @@ static void process_ep0(uint8_t rhport)
464464

465465
unsigned req = _dcd.setup_packet.bmRequestType;
466466
if (csrl & USB_CSRL0_SETEND) {
467-
TU_LOG1(" ABORT by the next packets\n");
467+
TU_LOG1(" ABORT by the next packets\r\n");
468468
USB0->CSRL0 = USB_CSRL0_SETENDC;
469469
if (req != REQUEST_TYPE_INVALID && _dcd.pipe0.buf) {
470470
/* DATA stage was aborted by receiving STATUS or SETUP packet. */
@@ -539,14 +539,14 @@ static void process_edpt_n(uint8_t rhport, uint_fast8_t ep_addr)
539539

540540
volatile hw_endpoint_t *regs = edpt_regs(epn_minus1);
541541
if (dir_in) {
542-
// TU_LOG1(" TXCSRL%d = %x\n", epn_minus1 + 1, regs->TXCSRL);
542+
// TU_LOG1(" TXCSRL%d = %x\r\n", epn_minus1 + 1, regs->TXCSRL);
543543
if (regs->TXCSRL & USB_TXCSRL1_STALLED) {
544544
regs->TXCSRL &= ~(USB_TXCSRL1_STALLED | USB_TXCSRL1_UNDRN);
545545
return;
546546
}
547547
completed = handle_xfer_in(ep_addr);
548548
} else {
549-
// TU_LOG1(" RXCSRL%d = %x\n", epn_minus1 + 1, regs->RXCSRL);
549+
// TU_LOG1(" RXCSRL%d = %x\r\n", epn_minus1 + 1, regs->RXCSRL);
550550
if (regs->RXCSRL & USB_RXCSRL1_STALLED) {
551551
regs->RXCSRL &= ~(USB_RXCSRL1_STALLED | USB_RXCSRL1_OVER);
552552
return;
@@ -789,7 +789,7 @@ bool dcd_edpt_xfer(uint8_t rhport, uint8_t ep_addr, uint8_t * buffer, uint16_t t
789789
{
790790
(void)rhport;
791791
bool ret;
792-
// TU_LOG1("X %x %d\n", ep_addr, total_bytes);
792+
// TU_LOG1("X %x %d\r\n", ep_addr, total_bytes);
793793
unsigned const epnum = tu_edpt_number(ep_addr);
794794
unsigned const ie = NVIC_GetEnableIRQ(USB0_IRQn);
795795
NVIC_DisableIRQ(USB0_IRQn);
@@ -807,7 +807,7 @@ bool dcd_edpt_xfer_fifo(uint8_t rhport, uint8_t ep_addr, tu_fifo_t * ff, uint16_
807807
{
808808
(void)rhport;
809809
bool ret;
810-
// TU_LOG1("X %x %d\n", ep_addr, total_bytes);
810+
// TU_LOG1("X %x %d\r\n", ep_addr, total_bytes);
811811
unsigned const epnum = tu_edpt_number(ep_addr);
812812
TU_ASSERT(epnum);
813813
unsigned const ie = NVIC_GetEnableIRQ(USB0_IRQn);
@@ -869,7 +869,7 @@ void dcd_int_handler(uint8_t rhport)
869869
is = USB0->IS; /* read and clear interrupt status */
870870
txis = USB0->TXIS; /* read and clear interrupt status */
871871
rxis = USB0->RXIS; /* read and clear interrupt status */
872-
// TU_LOG1("D%2x T%2x R%2x\n", is, txis, rxis);
872+
// TU_LOG1("D%2x T%2x R%2x\r\n", is, txis, rxis);
873873

874874
is &= USB0->IE; /* Clear disabled interrupts */
875875
if (is & USB_IS_DISCON) {

src/portable/mentor/musb/hcd_musb.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ static void process_ep0(uint8_t rhport)
418418
(void)rhport;
419419

420420
uint_fast8_t csrl = USB0->CSRL0;
421-
// TU_LOG1(" EP0 CSRL = %x\n", csrl);
421+
// TU_LOG1(" EP0 CSRL = %x\r\n", csrl);
422422

423423
unsigned const dev_addr = USB0->TXFUNCADDR0;
424424
unsigned const req = _hcd.bmRequestType;
@@ -508,7 +508,7 @@ static void process_pipe_tx(uint8_t rhport, uint_fast8_t pipenum)
508508

509509
volatile hw_endpoint_t *regs = edpt_regs(pipenum - 1);
510510
unsigned const csrl = regs->TXCSRL;
511-
// TU_LOG1(" TXCSRL%d = %x\n", pipenum, csrl);
511+
// TU_LOG1(" TXCSRL%d = %x\r\n", pipenum, csrl);
512512
if (csrl & (USB_TXCSRL1_STALLED | USB_TXCSRL1_ERROR)) {
513513
if (csrl & USB_TXCSRL1_TXRDY)
514514
regs->TXCSRL = (csrl & ~(USB_TXCSRL1_STALLED | USB_TXCSRL1_ERROR)) | USB_TXCSRL1_FLUSH;
@@ -537,7 +537,7 @@ static void process_pipe_rx(uint8_t rhport, uint_fast8_t pipenum)
537537

538538
volatile hw_endpoint_t *regs = edpt_regs(pipenum - 1);
539539
unsigned const csrl = regs->RXCSRL;
540-
// TU_LOG1(" RXCSRL%d = %x\n", pipenum, csrl);
540+
// TU_LOG1(" RXCSRL%d = %x\r\n", pipenum, csrl);
541541
if (csrl & (USB_RXCSRL1_STALLED | USB_RXCSRL1_ERROR)) {
542542
if (csrl & USB_RXCSRL1_RXRDY)
543543
regs->RXCSRL = (csrl & ~(USB_RXCSRL1_STALLED | USB_RXCSRL1_ERROR)) | USB_RXCSRL1_FLUSH;
@@ -854,7 +854,7 @@ void hcd_int_handler(uint8_t rhport)
854854
is = USB0->IS; /* read and clear interrupt status */
855855
txis = USB0->TXIS; /* read and clear interrupt status */
856856
rxis = USB0->RXIS; /* read and clear interrupt status */
857-
// TU_LOG1("D%2x T%2x R%2x\n", is, txis, rxis);
857+
// TU_LOG1("D%2x T%2x R%2x\r\n", is, txis, rxis);
858858

859859
is &= USB0->IE; /* Clear disabled interrupts */
860860
if (is & USB_IS_RESUME) {

src/portable/nxp/khci/hcd_khci.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ static int prepare_packets(int pipenum)
161161
buffer_descriptor_t *bd = _hcd.bdt[dir_tx];
162162
TU_ASSERT(0 == bd[odd].own, -1);
163163

164-
// TU_LOG1(" %p dir %d odd %d data %d\n", &bd[odd], dir_tx, odd, pipe->data);
164+
// TU_LOG1(" %p dir %d odd %d data %d\r\n", &bd[odd], dir_tx, odd, pipe->data);
165165

166166
ep->pipenum = pipenum;
167167

@@ -251,7 +251,7 @@ static bool resume_transfer(int pipenum)
251251
flags |= USB_ENDPT_EPHSHK_MASK | USB_ENDPT_EPCTLDIS_MASK | USB_ENDPT_RETRYDIS_MASK;
252252
break;
253253
}
254-
// TU_LOG1(" resume pipenum %d flags %x\n", pipenum, flags);
254+
// TU_LOG1(" resume pipenum %d flags %x\r\n", pipenum, flags);
255255

256256
KHCI->ENDPOINT[0].ENDPT = flags;
257257
KHCI->ADDR = (KHCI->ADDR & USB_ADDR_LSEN_MASK) | pipe->dev_addr;
@@ -302,7 +302,7 @@ static void process_tokdne(uint8_t rhport)
302302

303303
int pipenum = ep->pipenum;
304304
int next_pipenum;
305-
// TU_LOG1("TOKDNE %x PID %x pipe %d\n", s, pid, pipenum);
305+
// TU_LOG1("TOKDNE %x PID %x pipe %d\r\n", s, pid, pipenum);
306306

307307
xfer_result_t result;
308308
switch (pid) {
@@ -479,7 +479,7 @@ void hcd_device_close(uint8_t rhport, uint8_t dev_addr)
479479
bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet[8])
480480
{
481481
(void)rhport;
482-
// TU_LOG1("SETUP %u\n", dev_addr);
482+
// TU_LOG1("SETUP %u\r\n", dev_addr);
483483
TU_ASSERT(0 == (_hcd.in_progress & TU_BIT(0)));
484484

485485
int pipenum = find_pipe(dev_addr, 0);
@@ -510,7 +510,7 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const
510510
{
511511
(void)rhport;
512512
uint8_t const ep_addr = ep_desc->bEndpointAddress;
513-
// TU_LOG1("O %u %x\n", dev_addr, ep_addr);
513+
// TU_LOG1("O %u %x\r\n", dev_addr, ep_addr);
514514
/* Find a free pipe */
515515
pipe_state_t *p = &_hcd.pipe[0];
516516
pipe_state_t *end = &_hcd.pipe[CFG_TUH_ENDPOINT_MAX * 2];
@@ -543,7 +543,7 @@ bool hcd_edpt_open(uint8_t rhport, uint8_t dev_addr, tusb_desc_endpoint_t const
543543
bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t * buffer, uint16_t buflen)
544544
{
545545
(void)rhport;
546-
// TU_LOG1("X %u %x %x %d\n", dev_addr, ep_addr, (uintptr_t)buffer, buflen);
546+
// TU_LOG1("X %u %x %x %d\r\n", dev_addr, ep_addr, (uintptr_t)buffer, buflen);
547547

548548
int pipenum = find_pipe(dev_addr, ep_addr);
549549
TU_ASSERT(0 <= pipenum);
@@ -588,7 +588,7 @@ void hcd_int_handler(uint8_t rhport)
588588
uint32_t is = KHCI->ISTAT;
589589
uint32_t msk = KHCI->INTEN;
590590

591-
// TU_LOG1("S %lx\n", is);
591+
// TU_LOG1("S %lx\r\n", is);
592592

593593
/* clear disabled interrupts */
594594
KHCI->ISTAT = (is & ~msk & ~USB_ISTAT_TOKDNE_MASK) | USB_ISTAT_SOFTOK_MASK;
@@ -597,7 +597,7 @@ void hcd_int_handler(uint8_t rhport)
597597
if (is & USB_ISTAT_ERROR_MASK) {
598598
unsigned err = KHCI->ERRSTAT;
599599
if (err) {
600-
TU_LOG1(" ERR %x\n", err);
600+
TU_LOG1(" ERR %x\r\n", err);
601601
KHCI->ERRSTAT = err;
602602
} else {
603603
KHCI->INTEN &= ~USB_ISTAT_ERROR_MASK;

src/portable/raspberrypi/pio_usb/hcd_pio_usb.c

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

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/hcd_rp2040.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ static void __tusb_irq_path_func(hcd_rp2040_irq)(void)
219219
if ( status & USB_INTS_BUFF_STATUS_BITS )
220220
{
221221
handled |= USB_INTS_BUFF_STATUS_BITS;
222-
TU_LOG(2, "Buffer complete\n");
222+
TU_LOG(2, "Buffer complete\r\n");
223223
hw_handle_buff_status();
224224
}
225225

226226
if ( status & USB_INTS_TRANS_COMPLETE_BITS )
227227
{
228228
handled |= USB_INTS_TRANS_COMPLETE_BITS;
229229
usb_hw_clear->sie_status = USB_SIE_STATUS_TRANS_COMPLETE_BITS;
230-
TU_LOG(2, "Transfer complete\n");
230+
TU_LOG(2, "Transfer complete\r\n");
231231
hw_trans_complete();
232232
}
233233

0 commit comments

Comments
 (0)