Trivial: style
This commit is contained in:
parent
7bd0da5533
commit
69f37863aa
1 changed files with 5 additions and 3 deletions
|
|
@ -327,15 +327,17 @@ enableTimers(void)
|
||||||
/* XXX repeat this for DMTIMER4..7 */
|
/* XXX repeat this for DMTIMER4..7 */
|
||||||
/* select clock */
|
/* select clock */
|
||||||
*CMPER_REG(cmper, CMPER_CLKSEL_TIMER3) = CMPER_CKLSEL_MOSC;
|
*CMPER_REG(cmper, CMPER_CLKSEL_TIMER3) = CMPER_CKLSEL_MOSC;
|
||||||
while((*CMPER_REG(cmper, CMPER_CLKSEL_TIMER3) & 3) != CMPER_CKLSEL_MOSC)
|
while ((*CMPER_REG(cmper, CMPER_CLKSEL_TIMER3) & 3) != CMPER_CKLSEL_MOSC) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
/* enable clock */
|
/* enable clock */
|
||||||
*CMPER_REG(cmper, CMPER_TIMER3_CLKCTRL) = CMPER_CLKCTRL_ENABLE;
|
*CMPER_REG(cmper, CMPER_TIMER3_CLKCTRL) = CMPER_CLKCTRL_ENABLE;
|
||||||
while((*CMPER_REG(cmper, CMPER_TIMER3_CLKCTRL) & 3) != CMPER_CLKCTRL_ENABLE)
|
while ((*CMPER_REG(cmper, CMPER_TIMER3_CLKCTRL) & 3) != CMPER_CLKCTRL_ENABLE) {
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Configure dmtimer0 as kernel preemption timer */
|
/* Configure dmtimer0 as kernel preemption timer */
|
||||||
/**
|
/**
|
||||||
DONT_TRANSLATE
|
DONT_TRANSLATE
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue