boards/telosb: fix typos

This commit is contained in:
Kaspar Schleiser 2019-10-23 21:13:14 +02:00
parent be61dbe2ac
commit 02b1cf170f
2 changed files with 4 additions and 4 deletions

View File

@ -71,14 +71,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 */

View File

@ -10,7 +10,7 @@
/**
* @ingroup boards_telosb
*
* <h2>Compontents</h2>
* <h2>Components</h2>
* \li MSP430
* \li CC2420
*