diff --git a/cpu/mc1322x/lib/include/mc1322x.h b/cpu/mc1322x/lib/include/mc1322x.h index a133b338d..1f82701aa 100644 --- a/cpu/mc1322x/lib/include/mc1322x.h +++ b/cpu/mc1322x/lib/include/mc1322x.h @@ -48,5 +48,7 @@ #include "utils.h" #include "asm.h" #include "i2c.h" +#include "rtc.h" +#include "adc.h" #endif diff --git a/cpu/mc1322x/lib/maca.c b/cpu/mc1322x/lib/maca.c index 932cf2cd9..8a02f89c9 100644 --- a/cpu/mc1322x/lib/maca.c +++ b/cpu/mc1322x/lib/maca.c @@ -181,6 +181,8 @@ void maca_init(void) { radio_init(); 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();