Wait for xtal to stabilize
[fw/altos] / target / radio / radio.c
index ba693a775ab83f78622b244ec718871b63fbb062..d6c49effc8dd4b69f3ce740eb0068fb57a6ea816 100644 (file)
@@ -518,6 +518,8 @@ radio_init() {
 main ()
 {
        CLKCON = 0;
+       while (!(SLEEP & SLEEP_XOSC_STB))
+               ;
        /* Set P2_0 to output */
        radio_init ();
        delay(100);