Fixed the P8SEL bug in msp430x2618.c, as the port doesn't exist on the 2274.
[goodfet] / firmware / lib / msp430x2618.c
index 6d49366..6ad6f9c 100644 (file)
@@ -140,7 +140,10 @@ CALDCO_16MHZ 0x96 CALBC1_16MHZ 0x8f   2619-001.txt
 
 //! Initialize the MSP430 clock.
 void msp430_init_dco() {
-    P8SEL = 0; // disable XT2 on P8.7/8
+  #ifdef __MSP430_HAS_PORT8__
+  P8SEL = 0; // disable XT2 on P8.7/8
+  #endif
+  
   if(CALBC1_16MHZ!=0xFF){
     //Info is intact, use it.
     BCSCTL1 = CALBC1_16MHZ;