mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #3160 from peter-harliman/wrong_index_lpc43xx_tx_end_ring
Fix wrong index at LPC43xx tx end ring assignmentpull/3193/head
commit
7963e8e7c1
|
@ -432,7 +432,7 @@ static void txdscr_init()
|
||||||
txdesc[i].Status = TX_LAST_SEGM | TX_FIRST_SEGM;;
|
txdesc[i].Status = TX_LAST_SEGM | TX_FIRST_SEGM;;
|
||||||
txdesc[i].Ctrl = 0;
|
txdesc[i].Ctrl = 0;
|
||||||
txdesc[i].BufAddr1 = (uint32_t)&txbuf[i];
|
txdesc[i].BufAddr1 = (uint32_t)&txbuf[i];
|
||||||
if (i == (NUM_RX_FRAG - 1)) {
|
if (i == (NUM_TX_FRAG - 1)) {
|
||||||
txdesc[i].Status |= TX_END_RING;
|
txdesc[i].Status |= TX_END_RING;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue