diff options
| author | hathach <[email protected]> | 2021-11-23 09:46:45 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2021-11-23 09:46:45 +0700 |
| commit | 0fc11746c0e6d9f64750e02d1d46d901c11e0373 (patch) | |
| tree | 5f419e68194e17232631974987dd905b26469113 | |
| parent | a994540860306e7da80a6925633f1ac8486fbfd9 (diff) | |
clean up
| -rw-r--r-- | src/portable/nordic/nrf5x/dcd_nrf5x.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/portable/nordic/nrf5x/dcd_nrf5x.c b/src/portable/nordic/nrf5x/dcd_nrf5x.c index b10a29083..bee9fc0b6 100644 --- a/src/portable/nordic/nrf5x/dcd_nrf5x.c +++ b/src/portable/nordic/nrf5x/dcd_nrf5x.c @@ -217,9 +217,6 @@ static void xact_out_dma(uint8_t epnum) edpt_dma_start(&NRF_USBD->TASKS_STARTEPOUT[epnum]); } - -// xfer->buffer += xact_len; -// xfer->actual_len += xact_len; } // Prepare for a CBI transaction IN, call at the start @@ -234,8 +231,6 @@ static void xact_in_dma(uint8_t epnum) NRF_USBD->EPIN[epnum].PTR = (uint32_t) xfer->buffer; NRF_USBD->EPIN[epnum].MAXCNT = xact_len; - //xfer->buffer += xact_len; - edpt_dma_start(&NRF_USBD->TASKS_STARTEPIN[epnum]); } @@ -813,7 +808,7 @@ void dcd_int_handler(uint8_t rhport) if ( tu_bit_test(data_status, epnum) || (epnum == 0 && is_control_in) ) { xfer_td_t* xfer = get_td(epnum, TUSB_DIR_IN); - uint8_t const xact_len = NRF_USBD->EPIN[epnum].AMOUNT; // MAXCNT + uint8_t const xact_len = NRF_USBD->EPIN[epnum].AMOUNT; xfer->buffer += xact_len; xfer->actual_len += xact_len; @@ -843,7 +838,6 @@ void dcd_int_handler(uint8_t rhport) }else { // Data overflow !!! Nah, nRF will auto accept next Bulk/Interrupt OUT packet - // If USBD is already queued this // Mark this endpoint with data received xfer->data_received = true; } |
