Added the HALT preprocessor directive so that these files may be used directly.
[goodfet] / shellcode / chipcon / cc1110 / crystal.c
index 36f929b..226cbfd 100644 (file)
@@ -8,4 +8,6 @@ void main(){
   CLKCON = (CLKCON & ~(CLKCON_CLKSPD | CLKCON_OSC)) | CLKSPD_DIV_1; // Select xtal osc, 26 MHz
   while (CLKCON & CLKCON_OSC); // Wait for change to take effect
   SLEEP |= SLEEP_OSC_PD; // Turn off the other high speed oscillator (the RC osc)
+  
+  HALT;
 }