Fixed the P8SEL bug in msp430x2618.c, as the port doesn't exist on the 2274.
authortravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 8 May 2010 15:37:33 +0000 (15:37 +0000)
committertravisutk <travisutk@12e2690d-a6be-4b82-a7b7-67c4a43b65c8>
Sat, 8 May 2010 15:37:33 +0000 (15:37 +0000)
git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@481 12e2690d-a6be-4b82-a7b7-67c4a43b65c8

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() {
 
 //! 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;
   if(CALBC1_16MHZ!=0xFF){
     //Info is intact, use it.
     BCSCTL1 = CALBC1_16MHZ;