mirror of
https://github.com/oliverschmidt/contiki.git
synced 2026-04-26 00:18:23 +00:00
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:
+3
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user