From a3b9c2adb096bd63d7a61f635bd1fa925f99caa0 Mon Sep 17 00:00:00 2001 From: maralvira Date: Wed, 28 Jul 2010 18:48:03 +0000 Subject: [PATCH] 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). --- cpu/mc1322x/lib/maca.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpu/mc1322x/lib/maca.c b/cpu/mc1322x/lib/maca.c index 53f9defe5..5d59cbc6c 100644 --- a/cpu/mc1322x/lib/maca.c +++ b/cpu/mc1322x/lib/maca.c @@ -30,7 +30,7 @@ * This file is part of libmc1322x: see http://mc1322x.devl.org * for details. * - * $Id: maca.c,v 1.3 2010/07/28 18:47:35 maralvira Exp $ + * $Id: maca.c,v 1.4 2010/07/28 18:48:03 maralvira Exp $ */ #include @@ -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<