projects
/
goodfet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Redefinable CALCB1_16MHZ.
[goodfet]
/
firmware
/
lib
/
msp430x2618.c
diff --git
a/firmware/lib/msp430x2618.c
b/firmware/lib/msp430x2618.c
index
6a224fc
..
ed437d7
100644
(file)
--- a/
firmware/lib/msp430x2618.c
+++ b/
firmware/lib/msp430x2618.c
@@
-138,7
+138,10
@@
void msp430_init_dco() {
default:
case 0x6ff2: //f26f, the MSP430F2618
DCOCTL = 0x00;
- BCSCTL1 = 0x8f; //CALBC1_16MHZ at 0x10f9
+ #ifndef DCOVAL
+ #define DCOVAL 0x8f
+ #endif
+ BCSCTL1 = DCOVAL; //CALBC1_16MHZ at 0x10f9
/** Observed DCOCTL values:
2618: 7f, 97
*/