Fix clock initialization to not try to use 32kHz xtal on P2_3/P2_4
[fw/altos] / src / ao_tidongle.c
index 6dfa9ae9477103f6b5d9ae11c51f8af61e0b9b07..3b7c2733b7feaf51427f648a9d64f5541a6fb95e 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);