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:
parent
6db3b903d2
commit
7d60dd7a6d
1 changed files with 3 additions and 1 deletions
|
@ -459,7 +459,9 @@ void tx_packet(volatile packet_t *p) {
|
||||||
// print_packets("tx packet");
|
// print_packets("tx packet");
|
||||||
irq_restore();
|
irq_restore();
|
||||||
if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); }
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue