From 4a9f086cebf7c78397cdab222e0ba181d101846e Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sun, 23 May 2010 12:57:40 -0400 Subject: [PATCH] force interrupts instead of calling maca_isr --- lib/maca.c | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/lib/maca.c b/lib/maca.c index 37daf406c..871e6d4a7 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -111,6 +111,7 @@ volatile uint8_t fcs_mode = USE_FCS; /* it calls redoes the maca intialization but _DOES NOT_ free all packets */ void check_maca(void) { + safe_irq_disable(MACA); static volatile uint32_t last_time; static volatile uint32_t last_entry; volatile uint32_t i; @@ -128,7 +129,7 @@ void check_maca(void) { PRINTF("check maca: maca_clk stopped, restarting\n"); /* clock isn't running */ ResumeMACASync(); - maca_isr(); + *INTFRC = (1< (*MACA_SFTCLK + RECV_SOFTIMEOUT)) && (last_time > (*MACA_CPLCLK + CPL_TIMEOUT))) { @@ -137,7 +138,7 @@ void check_maca(void) { /* check that maca entry is changing */ /* if not, do call the isr to restart the cycle */ if(last_entry == maca_entry) { - maca_isr(); + *INTFRC = (1<