Hi,

I have a question about the TinyOS main loop. In the main function, there is
an infinite loop to handle all the tasks (interrupts). As I know, the CPU
will go into the idle state when there is no task to handle. My question
is:  what will happen to this infinite loop in the idle state? Is the loop
suspended? Thanks!

int main(void)
{
  RealMain$hardwareInit();
  RealMain$Pot$init(10);
  TOSH_sched_init();

  RealMain$StdControl$init();
  RealMain$StdControl$start();
  __nesc_enable_interrupt();
  while (1)
  {
      TOSH_run_task();
  }
}

Best Regards
Yu
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to