Skip to content
Snippets Groups Projects
Commit d8eadae2 authored by Adrian Danis's avatar Adrian Danis
Browse files

Trivial: style

parent 7acfbd72
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,7 @@ getActiveIRQ(void)
/* XXX - should never happen? */
printf("spurious irq %d / %x\n", irq, intcps_sir_irq);
}
/* No interrupt. */
return irqInvalid;
}
......@@ -291,11 +291,13 @@ disableWatchdog(void)
// am335x ref man, sec 20.4.3.8
*WDT_REG(wdt, WDT_REG_WSPR) = 0xaaaa;
while((*WDT_REG(wdt, WDT_REG_WWPS) & WDT_WWPS_PEND_WSPR))
while ((*WDT_REG(wdt, WDT_REG_WWPS) & WDT_WWPS_PEND_WSPR)) {
continue;
}
*WDT_REG(wdt, WDT_REG_WSPR) = 0x5555;
while((*WDT_REG(wdt, WDT_REG_WWPS) & WDT_WWPS_PEND_WSPR))
while ((*WDT_REG(wdt, WDT_REG_WWPS) & WDT_WWPS_PEND_WSPR)) {
continue;
}
}
/* Configure dmtimer0 as kernel preemption timer */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment