Trivial: style

This commit is contained in:
Adrian Danis 2015-05-04 11:50:48 +10:00
parent 7bd0da5533
commit 69f37863aa

View file

@ -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