mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-05 04:05:34 +00:00
6655c876f2
The added function let a process to make the system go into deep sleep for maximum power saving. The udp-ipv6-example shows how to use these new functions.
11 lines
379 B
C
11 lines
379 B
C
|
|
/* Enter system in deep sleep 1 (core power domain is fully
|
|
* powered down and sleep timer is active).
|
|
* Execution is suspended for a given number of seconds.
|
|
*
|
|
* Pay attention! All system peripherals (including sensors) have
|
|
* to be reinitialized before being used again. UART, LEDs and
|
|
* real timers are automatically reinitialized. */
|
|
|
|
void sleep_seconds(int seconds);
|