boards/telosb: fix typos
This commit is contained in:
parent
be61dbe2ac
commit
02b1cf170f
@ -71,14 +71,14 @@ void msp430_init_dco(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */
|
CCTL2 = CCIS0 + CM0 + CAP; /* Define CCR2, CAP, ACLK */
|
||||||
TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continous mode */
|
TACTL = TASSEL1 + TACLR + MC1; /* SMCLK, continuous mode */
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
unsigned int compare;
|
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 = CCR2; /* Get current captured SMCLK */
|
||||||
compare = compare - oldcapture; /* SMCLK difference */
|
compare = compare - oldcapture; /* SMCLK difference */
|
||||||
oldcapture = CCR2; /* Save current captured SMCLK */
|
oldcapture = CCR2; /* Save current captured SMCLK */
|
||||||
|
|||||||
@ -10,7 +10,7 @@
|
|||||||
/**
|
/**
|
||||||
* @ingroup boards_telosb
|
* @ingroup boards_telosb
|
||||||
*
|
*
|
||||||
* <h2>Compontents</h2>
|
* <h2>Components</h2>
|
||||||
* \li MSP430
|
* \li MSP430
|
||||||
* \li CC2420
|
* \li CC2420
|
||||||
*
|
*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user