From 17e7827d439ca5ec0759419a64eb7d05adc97eb2 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Thu, 21 Jul 2011 09:26:38 -0400 Subject: [PATCH 1/3] set an initial default channel --- otherwise the maca isr hogs the CPU. --- lib/maca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maca.c b/lib/maca.c index e6ea4a2a8..74b8b44da 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -173,6 +173,7 @@ void maca_init(void) { radio_init(); flyback_init(); init_phy(); + set_channel(0); /* things get weird if you never set a channel */ free_head = 0; tx_head = 0; rx_head = 0; rx_end = 0; tx_end = 0; dma_tx = 0; dma_rx = 0; free_all_packets(); From 659be7cbcc4e248d96f09e841e1456e1a58f27ce Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Thu, 21 Jul 2011 09:37:44 -0400 Subject: [PATCH 2/3] set the power to the lowest setting by default --- lib/maca.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maca.c b/lib/maca.c index 74b8b44da..828c0f81e 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -174,6 +174,7 @@ void maca_init(void) { flyback_init(); init_phy(); set_channel(0); /* things get weird if you never set a channel */ + set_power(0); /* set the power too --- who knows what happens if you don't */ free_head = 0; tx_head = 0; rx_head = 0; rx_end = 0; tx_end = 0; dma_tx = 0; dma_rx = 0; free_all_packets(); From 3034ac429dad667eb81d8ebb529bc5b2ecbe51fb Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 1 Aug 2011 19:49:13 -0400 Subject: [PATCH 3/3] add adc.h to mc1322x.h --- lib/include/mc1322x.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/include/mc1322x.h b/lib/include/mc1322x.h index a133b338d..1f82701aa 100644 --- a/lib/include/mc1322x.h +++ b/lib/include/mc1322x.h @@ -48,5 +48,7 @@ #include "utils.h" #include "asm.h" #include "i2c.h" +#include "rtc.h" +#include "adc.h" #endif