From: travisutk Date: Sat, 8 May 2010 15:37:33 +0000 (+0000) Subject: Fixed the P8SEL bug in msp430x2618.c, as the port doesn't exist on the 2274. X-Git-Url: http://git.rot13.org/?p=goodfet;a=commitdiff_plain;h=1a26e8326ce8bd53965cb93da40811144f4558a1 Fixed the P8SEL bug in msp430x2618.c, as the port doesn't exist on the 2274. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@481 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- diff --git a/firmware/lib/msp430x2618.c b/firmware/lib/msp430x2618.c index 6d49366..6ad6f9c 100644 --- a/firmware/lib/msp430x2618.c +++ b/firmware/lib/msp430x2618.c @@ -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;