Skip to content

Commit

Permalink
boards/z1: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Nov 23, 2019
1 parent 5468ab4 commit 4d0d52d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions boards/z1/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,14 +142,14 @@ void msp430_init_dco(void)
}

CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */
TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continous mode */
TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */

while (1) {
unsigned int compare;

while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occured!*/
while ((CCTL2 & CCIFG) != CCIFG); /* Wait until capture occurred!*/

CCTL2 &= ~CCIFG; /* Capture occured, clear flag */
CCTL2 &= ~CCIFG; /* Capture occurred, clear flag */
compare = CCR2; /* Get current captured SMCLK */
compare = compare - oldcapture; /* SMCLK difference */
oldcapture = CCR2; /* Save current captured SMCLK */
Expand Down

0 comments on commit 4d0d52d

Please sign in to comment.