diff options
Diffstat (limited to 'demos/MSP430-MSP430x1611-GCC/board.c')
-rw-r--r-- | demos/MSP430-MSP430x1611-GCC/board.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demos/MSP430-MSP430x1611-GCC/board.c b/demos/MSP430-MSP430x1611-GCC/board.c index c6cfedce2..caef10720 100644 --- a/demos/MSP430-MSP430x1611-GCC/board.c +++ b/demos/MSP430-MSP430x1611-GCC/board.c @@ -33,6 +33,14 @@ void hwinit(void) { */
DCOCTL = VAL_DCOCTL;
BCSCTL1 = VAL_BCSCTL1;
+#if defined(MSP_USE_XT2CLK)
+ do {
+ int i;
+ IFG1 &= ~OFIFG;
+ for (i = 255; i > 0; i--)
+ asm("nop");
+ } while (IFG1 & OFIFG);
+#endif
BCSCTL2 = VAL_BCSCTL2;
/*
|