Mainloop_group

Functions

static void cpu_enter_sleep (void)
 Enter the deepest possible sleep mode.

Function Documentation

void cpu_enter_sleep ( void   )  [inline, static]

Enter the deepest possible sleep mode.

Todo:
Currently, this function does nothing. We probably want to at least enter Idle mode when the workqueue is empty.

This function will determine the lowest possible sleep mode that can safely be entered, enable interrupts and put the chip into that sleep mode. This will all happen atomically, so no interrupts will be handled before the sleep instruction has been executed.

Todo:
Currently, no sleep modes deeper than Idle will be entered. Deeper sleep modes will require a proper sleep manager to be implemented and supported by all drivers.
Precondition:
Interrupts are disabled
Postcondition:
Interrupts are enabled

Definition at line 50 of file sleep.h.

References cpu_irq_enable.

Generated on Thu Apr 29 14:09:44 2010 for uart-loopback by  doxygen 1.6.3