Wait for xtal to stabilize
authorKeith Packard <keithp@keithp.com>
Wed, 25 Mar 2009 08:02:07 +0000 (01:02 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 25 Mar 2009 08:02:07 +0000 (01:02 -0700)
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);