Beginning support for SQL symbol tables.
[goodfet] / firmware / lib / msp430x2618.c
index 814c8ef..ed437d7 100644 (file)
@@ -138,8 +138,14 @@ void msp430_init_dco() {
     default:
     case 0x6ff2:        //f26f, the MSP430F2618
       DCOCTL = 0x00;
-      BCSCTL1 = 0x8f;   //CALBC1_16MHZ at 0x10f9
-      DCOCTL = 0x7f;    //CALDCO_16MHZ at 0x10f8
+      #ifndef DCOVAL
+      #define DCOVAL 0x8f
+      #endif
+      BCSCTL1 = DCOVAL;   //CALBC1_16MHZ at 0x10f9
+      /** Observed DCOCTL values:
+         2618: 7f, 97
+      */
+      DCOCTL = 0x83;    //CALDCO_16MHZ at 0x10f8
       break;
     }
   }