in tx_packet, force an interrupt if the maca isn't doing anything so

that the transmit starts. Or if the maca is in a reception cycle,
advance the softclock timeout to now so that transmission starts as
soon as possible (immediately if a packet isn't being received or
right after reception finishes).
This commit is contained in:
Mariano Alvira 2010-07-14 13:59:28 -04:00
parent 6db3b903d2
commit 7d60dd7a6d

View file

@ -459,7 +459,9 @@ void tx_packet(volatile packet_t *p) {
// print_packets("tx packet");
irq_restore();
if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); }
if(last_post == NO_POST) { *INTFRC = (1<<INT_NUM_MACA); }
/* if we are in a reception cycle, advance the softclock timeout to now */
if(last_post == RX_POST) { *MACA_SFTCLK = *MACA_CLK; }
return;
}