Skip to content

Commit 75f6583

Browse files
committed
ohci: Use enum instead of magic number
1 parent f2a6af0 commit 75f6583

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/portable/ohci/ohci.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ bool hcd_setup_send(uint8_t rhport, uint8_t dev_addr, uint8_t const setup_packet
483483
qtd->index = dev_addr;
484484
qtd->pid = PID_SETUP;
485485
qtd->data_toggle = GTD_DT_DATA0;
486-
qtd->delay_interrupt = 0;
486+
qtd->delay_interrupt = OHCI_INT_ON_COMPLETE_YES;
487487

488488
//------------- Attach TDs list to Control Endpoint -------------//
489489
ed->td_head.address = (uint32_t) _phys_addr(qtd);
@@ -510,7 +510,7 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t *
510510
gtd->index = dev_addr;
511511
gtd->pid = dir ? PID_IN : PID_OUT;
512512
gtd->data_toggle = GTD_DT_DATA1; // Both Data and Ack stage start with DATA1
513-
gtd->delay_interrupt = 0;
513+
gtd->delay_interrupt = OHCI_INT_ON_COMPLETE_YES;
514514

515515
ed->td_head.address = (uint32_t) _phys_addr(gtd);
516516

@@ -524,7 +524,7 @@ bool hcd_edpt_xfer(uint8_t rhport, uint8_t dev_addr, uint8_t ep_addr, uint8_t *
524524

525525
gtd_init(gtd, buffer, buflen);
526526
gtd->index = ed-ohci_data.ed_pool;
527-
gtd->delay_interrupt = 0;
527+
gtd->delay_interrupt = OHCI_INT_ON_COMPLETE_YES;
528528

529529
td_insert_to_ed(ed, gtd);
530530

0 commit comments

Comments
 (0)