Fix clock initialization to not try to use 32kHz xtal on P2_3/P2_4
[fw/altos] / src / ao_teledongle.c
index 567751c6097f3f9f17bdf8dc2165e6041dbc97e2..4ebc53a54161d5f1772426dd3257a80c04c9c163 100644 (file)
@@ -22,9 +22,7 @@
 void
 main(void)
 {
-       CLKCON = 0;
-       while (!(SLEEP & SLEEP_XOSC_STB))
-               ;
+       ao_clock_init();
 
        /* Turn on the LED until the system is stable */
        ao_led_init(AO_LED_RED|AO_LED_GREEN);