projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Added the HALT preprocessor directive so that these files may be used directly.
[goodfet]
/
shellcode
/
chipcon
/
cc1110
/
crystal.c
diff --git
a/shellcode/chipcon/cc1110/crystal.c
b/shellcode/chipcon/cc1110/crystal.c
index
36f929b
..
226cbfd
100644
(file)
--- a/
shellcode/chipcon/cc1110/crystal.c
+++ b/
shellcode/chipcon/cc1110/crystal.c
@@
-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;
}