mirror of https://github.com/ARMmbed/mbed-os.git
Kinetis EMAC: Correct TX ring pointer array size
TX pointer array was using RX ring length in its declaration. Wasted memory if RX ring > TX ring, as is the default, but would be broken if RX ring < TX ring.pull/7141/head
parent
30e68f3201
commit
a8e8775aa9
|
|
@ -55,7 +55,7 @@ uint8_t *rx_desc_start_addr;
|
|||
// RX packet buffer pointers
|
||||
emac_mem_buf_t *rx_buff[ENET_RX_RING_LEN];
|
||||
// TX packet buffer pointers
|
||||
emac_mem_buf_t *tx_buff[ENET_RX_RING_LEN];
|
||||
emac_mem_buf_t *tx_buff[ENET_TX_RING_LEN];
|
||||
// RX packet payload pointers
|
||||
uint32_t *rx_ptr[ENET_RX_RING_LEN];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue