Esempio n. 1
0
/* ### main
 *
 * Call initialization functions and start polling.
 *
 * Once the polling timer is enabled, the `main` function spins
 * forever. This is normal, as all the work is done in the interrupt
 * handler called every time the timer fires.
 */
int main(void) {
  init();
  poll_timer_enable(); //Turn interrupt polling on
  for(;;);
}
Esempio n. 2
0
int main(void) {
  init();
  poll_timer_enable();
  for(ever);
}