Skip to content

Commit 0693462

Browse files
author
Lars Pötter
committed
made line ends consistent.
1 parent f5d0510 commit 0693462

File tree

12 files changed

+72
-72
lines changed

12 files changed

+72
-72
lines changed

src/class/cdc/cdc_host.c

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

978978
p_cdc->user_control_cb = complete_cb;
979979
_ftdi_requested_baud = baudrate;
@@ -1108,7 +1108,7 @@ static bool cp210x_ifc_enable(cdch_interface_t* p_cdc, uint16_t enabled, tuh_xfe
11081108
}
11091109

11101110
static bool cp210x_set_baudrate(cdch_interface_t* p_cdc, uint32_t baudrate, tuh_xfer_cb_t complete_cb, uintptr_t user_data) {
1111-
TU_LOG_DRV("CDC CP210x Set BaudRate = %lu\n", baudrate);
1111+
TU_LOG_DRV("CDC CP210x Set BaudRate = %lu\r\n", baudrate);
11121112
uint32_t baud_le = tu_htole32(baudrate);
11131113
p_cdc->user_control_cb = complete_cb;
11141114
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
@@ -609,17 +609,17 @@ static bool _close_vc_itf(uint8_t rhport, videod_interface_t *self)
609609
* @param[in] altnum The target alternate setting number. */
610610
static bool _open_vc_itf(uint8_t rhport, videod_interface_t *self, uint_fast8_t altnum)
611611
{
612-
TU_LOG2(" open VC %d\n", altnum);
612+
TU_LOG2(" open VC %d\r\n", altnum);
613613
uint8_t const *beg = self->beg;
614614
uint8_t const *end = beg + self->len;
615615

616616
/* The first descriptor is a video control interface descriptor. */
617617
uint8_t const *cur = _find_desc_itf(beg, end, _desc_itfnum(beg), altnum);
618-
TU_LOG2(" cur %d\n", cur - beg);
618+
TU_LOG2(" cur %d\r\n", cur - beg);
619619
TU_VERIFY(cur < end);
620620

621621
tusb_desc_vc_itf_t const *vc = (tusb_desc_vc_itf_t const *)cur;
622-
TU_LOG2(" bInCollection %d\n", vc->ctl.bInCollection);
622+
TU_LOG2(" bInCollection %d\r\n", vc->ctl.bInCollection);
623623
/* Support for up to 2 streaming interfaces only. */
624624
TU_ASSERT(vc->ctl.bInCollection <= CFG_TUD_VIDEO_STREAMING);
625625

@@ -628,7 +628,7 @@ static bool _open_vc_itf(uint8_t rhport, videod_interface_t *self, uint_fast8_t
628628

629629
/* Advance to the next descriptor after the class-specific VC interface header descriptor. */
630630
cur += vc->std.bLength + vc->ctl.bLength;
631-
TU_LOG2(" bNumEndpoints %d\n", vc->std.bNumEndpoints);
631+
TU_LOG2(" bNumEndpoints %d\r\n", vc->std.bNumEndpoints);
632632
/* Open the notification endpoint if it exist. */
633633
if (vc->std.bNumEndpoints) {
634634
/* Support for 1 endpoint only. */
@@ -662,7 +662,7 @@ static bool _init_vs_configuration(videod_streaming_interface_t *stm)
662662
static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint_fast8_t altnum)
663663
{
664664
uint_fast8_t i;
665-
TU_LOG2(" reopen VS %d\n", altnum);
665+
TU_LOG2(" reopen VS %d\r\n", altnum);
666666
uint8_t const *desc = _videod_itf[stm->index_vc].beg;
667667

668668
/* Close endpoints of previous settings. */
@@ -672,7 +672,7 @@ static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint
672672
uint8_t ep_adr = _desc_ep_addr(desc + ofs_ep);
673673
usbd_edpt_close(rhport, ep_adr);
674674
stm->desc.ep[i] = 0;
675-
TU_LOG2(" close EP%02x\n", ep_adr);
675+
TU_LOG2(" close EP%02x\r\n", ep_adr);
676676
}
677677

678678
/* clear transfer management information */
@@ -709,12 +709,12 @@ static bool _open_vs_itf(uint8_t rhport, videod_streaming_interface_t *stm, uint
709709
}
710710
TU_ASSERT(usbd_edpt_open(rhport, ep));
711711
stm->desc.ep[i] = (uint16_t) (cur - desc);
712-
TU_LOG2(" open EP%02x\n", _desc_ep_addr(cur));
712+
TU_LOG2(" open EP%02x\r\n", _desc_ep_addr(cur));
713713
}
714714
if (altnum) {
715715
stm->state = VS_STATE_STREAMING;
716716
}
717-
TU_LOG2(" done\n");
717+
TU_LOG2(" done\r\n");
718718
return true;
719719
}
720720

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;
@@ -846,7 +846,7 @@ void hcd_int_handler(uint8_t rhport)
846846
is = USB0->IS; /* read and clear interrupt status */
847847
txis = USB0->TXIS; /* read and clear interrupt status */
848848
rxis = USB0->RXIS; /* read and clear interrupt status */
849-
// TU_LOG1("D%2x T%2x R%2x\n", is, txis, rxis);
849+
// TU_LOG1("D%2x T%2x R%2x\r\n", is, txis, rxis);
850850

851851
is &= USB0->IE; /* Clear disabled interrupts */
852852
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);
@@ -580,7 +580,7 @@ void hcd_int_handler(uint8_t rhport)
580580
uint32_t is = KHCI->ISTAT;
581581
uint32_t msk = KHCI->INTEN;
582582

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

585585
/* clear disabled interrupts */
586586
KHCI->ISTAT = (is & ~msk & ~USB_ISTAT_TOKDNE_MASK) | USB_ISTAT_SOFTOK_MASK;
@@ -589,7 +589,7 @@ void hcd_int_handler(uint8_t rhport)
589589
if (is & USB_ISTAT_ERROR_MASK) {
590590
unsigned err = KHCI->ERRSTAT;
591591
if (err) {
592-
TU_LOG1(" ERR %x\n", err);
592+
TU_LOG1(" ERR %x\r\n", err);
593593
KHCI->ERRSTAT = err;
594594
} else {
595595
KHCI->INTEN &= ~USB_ISTAT_ERROR_MASK;

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

src/portable/raspberrypi/rp2040/rp2040_usb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ void hw_endpoint_xfer_start(struct hw_endpoint *ep, uint8_t *buffer, uint16_t to
219219
if ( ep->active )
220220
{
221221
// TODO: Is this acceptable for interrupt packets?
222-
TU_LOG(1, "WARN: starting new transfer on already active ep %d %s\n", tu_edpt_number(ep->ep_addr),
222+
TU_LOG(1, "WARN: starting new transfer on already active ep %d %s\r\n", tu_edpt_number(ep->ep_addr),
223223
ep_dir_string[tu_edpt_dir(ep->ep_addr)]);
224224

225225
hw_endpoint_reset_transfer(ep);
@@ -419,7 +419,7 @@ static bool __tusb_irq_path_func(e15_is_critical_frame_period) (struct hw_endpoi
419419
if (delta < 800 || delta > 998) {
420420
return false;
421421
}
422-
TU_LOG(3, "Avoiding sof %lu now %lu last %lu\n", (usb_hw->sof_rd + 1) & USB_SOF_RD_BITS, time_us_32(), e15_last_sof);
422+
TU_LOG(3, "Avoiding sof %lu now %lu last %lu\r\n", (usb_hw->sof_rd + 1) & USB_SOF_RD_BITS, time_us_32(), e15_last_sof);
423423
return true;
424424
}
425425

0 commit comments

Comments
 (0)